final void incClearCount(LocalRegion lr) { if (lr != null && !(lr instanceof HARegion)) { CachePerfStats stats = lr.getCachePerfStats(); if (stats != null) { stats.incClearCount(); } } }
/** * Update stats */ private void updateStatsForDestroy() { getCachePerfStats().incDestroys(); }
/** * Update CachePerfStats */ private void updateStatsForCreate() { getCachePerfStats().incCreates(); }
/** * Update stats */ private void updateStatsForInvalidate() { getCachePerfStats().incInvalidates(); }
/** * Update stats */ private void updateStatsForInvalidate() { getCachePerfStats().incInvalidates(); }
/** * Update CachePerfStats */ private void updateStatsForCreate() { getCachePerfStats().incCreates(); }
/** * update stats */ private void updateStatsForPut(long startPut) { getCachePerfStats().endPut(startPut, false); }
/** * Update stats */ private void updateStatsForDestroy() { getCachePerfStats().incDestroys(); }
final void incClearCount(LocalRegion lr) { if (lr != null && !(lr instanceof HARegion)) { CachePerfStats stats = lr.getCachePerfStats(); if (stats != null) { stats.incClearCount(); } } }
public static void assertNoClearTimeouts() { // if there are timeouts on waiting for version vector dominance then // some operation was not properly recorded in the VM throwing this // assertion error. All ops need to be recorded in the version vector assertEquals("expected there to be no timeouts - something is broken", 0, CCRegion.getCachePerfStats().getClearTimeouts()); }
protected final void incEntryCount(int delta) { LocalRegion lr = _getOwner(); if (lr != null) { CachePerfStats stats = lr.getCachePerfStats(); if (stats != null) { stats.incEntryCount(delta); } } }
protected final void incEntryCount(int delta) { LocalRegion lr = _getOwner(); if (lr != null) { CachePerfStats stats = lr.getCachePerfStats(); if (stats != null) { stats.incEntryCount(delta); } } }
/** * update stats */ private void updateStatsForPut(long startPut) { getCachePerfStats().endPut(startPut, false); if(this.partitionedRegionForBucket != null){ this.partitionedRegionForBucket.getPrStats().endPut(startPut); } }
/** * Returns the number of post-decompressed bytes stat for a region. * @param regionName a region. */ private long getTotalPostCompressedBytes(String regionName) { LocalRegion region = (LocalRegion) getCache().getRegion(regionName); assertNotNull(region); return region.getCachePerfStats().getTotalPostCompressedBytes(); }
public final void putAll(Map map) { long startPut = CachePerfStats.getStatTime(); final DistributedPutAllOperation putAllOp = newPutAllOperation(map); if (putAllOp != null) { //Because Gemfirexd directly calls basicPutAll, the offheap resources freeing is // done in the function basicPutAll basicPutAll(map, putAllOp, null); } getCachePerfStats().endPutAll(startPut); }
/** * Returns the number of pre-compressed bytes stat for a region. * @param regionName a region. */ private long getTotalPreCompressedBytes(String regionName) { LocalRegion region = (LocalRegion) getCache().getRegion(regionName); assertNotNull(region); return region.getCachePerfStats().getTotalPreCompressedBytes(); }
/** * Returns the number of decompressions stat for a region. * @param regionName a region. */ private long getTotalDecompressions(String regionName) { LocalRegion region = (LocalRegion) getCache().getRegion(regionName); assertNotNull(region); return region.getCachePerfStats().getTotalDecompressions(); }
/** * Returns the total number of compressions stat for a region. * @param regionName a region. */ private long getTotalCompressions(String regionName) { LocalRegion region = (LocalRegion) getCache().getRegion(regionName); assertNotNull(region); return region.getCachePerfStats().getTotalCompressions(); }
/** * Returns the total decompression time stat for a region. * @param regionName a region. */ private long getTotalDecompressionTime(String regionName) { LocalRegion region = (LocalRegion) getCache().getRegion(regionName); assertNotNull(region); return region.getCachePerfStats().getTotalDecompressionTime(); }
public static void noDeltaFailureOnServer() { CachePerfStats stats = ((LocalRegion)cache.getRegion(REGION_NAME1)) .getCachePerfStats(); int deltaFailures = stats.getDeltaFailedUpdates(); assertTrue("delta failures count is not zero", deltaFailures == 0); assertTrue("fromDelta invoked", !DeltaTestObj.fromDeltaFeatureUsed()); }