public long startApplyReplication() { stats.incInt(applyReplicationInProgressId, 1); return CachePerfStats.getStatTime(); }
public void endCreate(long start, int numInc) { if (CachePerfStats.enableClockStats) { this.stats.incLong(createTimeId, CachePerfStats.getStatTime() - start); } this.stats.incInt(createsCompletedId, numInc); }
public void endPartitionMessagesProcessing(long start) { if (CachePerfStats.enableClockStats) { long delta = CachePerfStats.getStatTime() - start; this.stats.incLong(partitionMessagesProcessingTimeId, delta); } this.stats.incInt(partitionMessagesProcessedId, 1); }
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 endDestroy(long start) { if (CachePerfStats.enableClockStats) { this.stats.incLong(destroyTimeId, CachePerfStats.getStatTime() - start); } this.stats.incInt(destroysCompletedId, 1); }
public void endContainsValueForKey(long start, int numInc) { if (CachePerfStats.enableClockStats) { this.stats.incLong(containsValueForKeyTimeId, CachePerfStats.getStatTime() - start); } this.stats.incInt(containsValueForKeyCompletedId, numInc); }
/** * This method sets the end time for putAll and updates the counters * */ public void endPutAll(long start, int numInc) { if (CachePerfStats.enableClockStats) { long delta = CachePerfStats.getStatTime() - start; this.stats.incLong(fieldId_PUTALL_TIME, delta); // this.putStatsHistogram.endOp(delta); } this.stats.incInt(fieldId_PUTALLS_COMPLETED, numInc); }
public void endRemoveAll(long start, int numInc) { if (CachePerfStats.enableClockStats) { long delta = CachePerfStats.getStatTime() - start; this.stats.incLong(fieldId_REMOVE_ALL_TIME, delta); } this.stats.incInt(fieldId_REMOVE_ALLS_COMPLETED, numInc); }
/** * This method sets the end time for update and updates the counters * */ public void endGetEntry(long start, int numInc) { if (CachePerfStats.enableClockStats) { this.stats.incLong(getEntryTimeId, CachePerfStats.getStatTime() - start); } this.stats.incInt(getEntriesCompletedId, numInc); }
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 endInvalidate(long start) { if (CachePerfStats.enableClockStats) { this.stats.incLong(invalidateTimeId, CachePerfStats.getStatTime() - start); } this.stats.incInt(invalidatesCompletedId, 1); }
public void endContainsKey(long start, int numInc) { if (CachePerfStats.enableClockStats) { this.stats.incLong(containsKeyTimeId, CachePerfStats.getStatTime() - start); } this.stats.incInt(containsKeyCompletedId, numInc); }
public void endPutRemote(long start) { long delta = CachePerfStats.getStatTime() - start; stats.incInt(putRemoteInProgressId, -1); stats.incInt(putRemoteCompletedId, 1); stats.incLong(putRemoteTimeId, delta); }
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 endVolunteeringBecamePrimary(long start) { long ts = CachePerfStats.getStatTime(); this.stats.incInt(volunteeringInProgressId, -1); this.stats.incInt(volunteeringBecamePrimaryId, 1); if (CachePerfStats.enableClockStats) { long time = ts - start; this.stats.incLong(volunteeringBecamePrimaryTimeId, time); } }
public void endVolunteeringClosed(long start) { long ts = CachePerfStats.getStatTime(); this.stats.incInt(volunteeringInProgressId, -1); this.stats.incInt(volunteeringClosedId, 1); if (CachePerfStats.enableClockStats) { long time = ts - start; this.stats.incLong(volunteeringClosedTimeId, time); } }
public void endApplyReplication(long start) { long delta = CachePerfStats.getStatTime() - start; stats.incInt(applyReplicationInProgressId, -1); stats.incInt(applyReplicationCompletedId, 1); stats.incLong(applyReplicationTimeId, delta); }
public void endLoadBalance(long start) { long delta = CachePerfStats.getStatTime() - start; stats.incInt(loadBalancesInProgressId, -1); stats.incInt(loadBalancesCompletedId, 1); stats.incLong(loadBalanceTimeId, delta); }
@Override public void create(Object key, Object value, Object aCallbackArgument) throws TimeoutException, EntryExistsException, CacheWriterException { long startPut = CachePerfStats.getStatTime(); @Released EntryEventImpl event = newCreateEntryEvent(key, value, aCallbackArgument); try { validatedCreate(event, startPut); } finally { event.release(); } }
void doAfterCompletionRollback() { final long opStart = CachePerfStats.getStatTime(); this.jtaLifeTime = opStart - getBeginTime(); try { rollback(); saveTXCommitMessageForClientFailover(); this.proxy.getTxMgr().noteRollbackSuccess(opStart, this.jtaLifeTime, this); } catch (InternalGemFireError error) { throw new TransactionException(error); } }