/** * @return the timestamp that marks the start of the operation */ public long startGet() { return getStatTime(); } /**
/** * @return the timestamp that marks the start of the operation * @since 3.5 */ public long startCacheListenerCall() { stats.incInt(cacheListenerCallsInProgressId, 1); return getStatTime(); } /**
/** * @return the timestamp that marks the start of the operation */ public long startNetload() { stats.incInt(netloadsInProgressId, 1); return getStatTime(); } /**
/** * @return the timestamp that marks the start of the operation * @since 3.5 */ public long startCacheListenerCall() { stats.incInt(cacheListenerCallsInProgressId, 1); return getStatTime(); } /**
public void endQueryResultsHashCollisionProbe(long start) { if (enableClockStats) { stats.incLong(queryResultsHashCollisionProbeTimeId, getStatTime() - start); } }
public void endGet(long start, int numInc) { if (CachePerfStats.enableClockStats) { final long delta = CachePerfStats.getStatTime() - start; this.stats.incLong(getTimeId, delta); } this.stats.incInt(getsCompletedId, numInc); } public void endDestroy(long start) {
public void endDestroy(long start) { if (CachePerfStats.enableClockStats) { this.stats.incLong(destroyTimeId, CachePerfStats.getStatTime() - start); } this.stats.incInt(destroysCompletedId, 1); } public void endInvalidate(long start) {
public void endDestroy(long start) { if (CachePerfStats.enableClockStats) { this.stats.incLong(destroyTimeId, CachePerfStats.getStatTime() - start); } this.stats.incInt(destroysCompletedId, 1); } public void endInvalidate(long start) {
public void endPut(long start, int numInc) { if (CachePerfStats.enableClockStats) { long delta = CachePerfStats.getStatTime() - start; this.stats.incLong(putTimeId, delta); } this.stats.incInt(putsCompletedId, numInc); } /**
public void endCreate(long start, int numInc) { if (CachePerfStats.enableClockStats) { this.stats.incLong(createTimeId, CachePerfStats.getStatTime() - start); } this.stats.incInt(createsCompletedId, numInc); } public void endGet(long start, int numInc) {
public void endDeltaPrepared(long start) { stats.incInt(deltasPreparedId, 1); if (enableClockStats) { stats.incLong(deltasPreparedTimeId, getStatTime() - start); } } public void incDeltasSent() {
public void endCompressionSkipped(long startTime, long startSize) { if (enableClockStats) { stats.incLong(compressionSkippedTimeId, getStatTime() - startTime); } stats.incLong(compressionSkippedId, 1); stats.incLong(compressionSkippedBytesId, startSize); }
/** * @param start the timestamp taken when the operation started */ public void endCacheWriterCall(long start) { if (enableClockStats) { stats.incLong(cacheWriterCallTimeId, getStatTime()-start); } stats.incInt(cacheWriterCallsInProgressId, -1); stats.incInt(cacheWriterCallsCompletedId, 1); }
public void endPutLocal(long start) { long delta = CachePerfStats.getStatTime() - start; stats.incInt(putLocalInProgressId, -1); stats.incInt(putLocalCompletedId, 1); stats.incLong(putLocalTimeId, delta); }
public void endIndexInitialization(long start) { long ts = getStatTime(); stats.incLong(indexInitializationTimeId, ts-start); stats.incInt(indexInitializationInProgressId, -1); stats.incInt(indexInitializationCompletedId, 1); }
public void endVolunteeringOtherPrimary(long start) { long ts = CachePerfStats.getStatTime(); this.stats.incInt(volunteeringInProgressId, -1); this.stats.incInt(volunteeringOtherPrimaryId, 1); if (CachePerfStats.enableClockStats) { long time = ts-start; this.stats.incLong(volunteeringOtherPrimaryTimeId, time); } } public void endVolunteeringClosed(long start) {
/** * @param start the timestamp taken when the operation started */ public void endNetload(long start) { if (enableClockStats) { stats.incLong(netloadTimeId, getStatTime()-start); } stats.incInt(netloadsInProgressId, -1); stats.incInt(netloadsCompletedId, 1); }
/** * @param start the timestamp taken when the operation started * @since 3.5 */ public void endCacheListenerCall(long start) { if (enableClockStats) { stats.incLong(cacheListenerCallTimeId, getStatTime()-start); } stats.incInt(cacheListenerCallsInProgressId, -1); stats.incInt(cacheListenerCallsCompletedId, 1); }
/** * @param start the timestamp taken when the operation started */ public void endGetInitialImage(long start) { if (enableClockStats) { stats.incLong(getInitialImageTimeId, getStatTime()-start); } stats.incInt(getInitialImagesInProgressId, -1); stats.incInt(getInitialImagesCompletedId, 1); } /**
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); }