public void endGetPDXIdForType(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(getPDXIdForTypeInProgressId, -1); int statId; if (timedOut) { statId = getPDXIdForTypeTimedOutId; } else if (failed) { statId = getPDXIdForTypeFailedId; } else { statId = getPDXIdForTypeId; } this.stats.incInt(statId, 1); this.stats.incLong(getPDXIdForTypeDurationId, duration); }
public void endAddPdxType(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(addPdxTypeInProgressId, -1); int statId; if (timedOut) { statId = addPdxTypeTimedOutId; } else if (failed) { statId = addPdxTypeFailedId; } else { statId = addPdxTypeId; } this.stats.incInt(statId, 1); this.stats.incLong(addPdxTypeDurationId, duration); }
public void endCommit(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(commitInProgressId, -1); int endcommitId; if (timedOut) { endcommitId = commitTimedOutId; } else if (failed) { endcommitId = commitFailedId; } else { endcommitId = commitId; } this.stats.incInt(endcommitId, 1); this.stats.incLong(commitDurationId, duration); }
public void endSize(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(sizeInProgressId, -1); int endSizeId; if (timedOut) { endSizeId = sizeTimedOutId; } else if (failed) { endSizeId = sizeFailedId; } else { endSizeId = sizeId; } this.stats.incInt(endSizeId, 1); this.stats.incLong(sizeDurationId, duration); }
public void endGetPDXTypeById(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(getPDXTypeByIdInProgressId, -1); int statId; if (timedOut) { statId = getPDXTypeByIdTimedOutId; } else if (failed) { statId = getPDXTypeByIdFailedId; } else { statId = getPDXTypeByIdId; } this.stats.incInt(statId, 1); this.stats.incLong(getPDXTypeByIdDurationId, duration); }
public void endInvalidate(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(invalidateInProgressId, -1); int endInvalidateId; if (timedOut) { endInvalidateId = invalidateTimedOutId; } else if (failed) { endInvalidateId = invalidateFailedId; } else { endInvalidateId = invalidateId; } this.stats.incInt(endInvalidateId, 1); this.stats.incLong(invalidateDurationId, duration); }
public void endRegisterDataSerializers(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(registerDataSerializersInProgressId, -1); int endRegisterDataSerializersId; if (timedOut) { endRegisterDataSerializersId = registerDataSerializersTimedOutId; } else if (failed) { endRegisterDataSerializersId = registerDataSerializersFailedId; } else { endRegisterDataSerializersId = registerDataSerializersId; } this.stats.incInt(endRegisterDataSerializersId, 1); this.stats.incLong(registerDataSerializersDurationId, duration); }
public void endGetEntry(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(getEntryInProgressId, -1); int endGetEntryId; if (timedOut) { endGetEntryId = getEntryTimedOutId; } else if (failed) { endGetEntryId = getEntryFailedId; } else { endGetEntryId = getEntryId; } this.stats.incInt(endGetEntryId, 1); this.stats.incLong(getEntryDurationId, duration); }
public void endRollback(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(rollbackInProgressId, -1); int endRollbackId; if (timedOut) { endRollbackId = rollbackTimedOutId; } else if (failed) { endRollbackId = rollbackFailedId; } else { endRollbackId = rollbackId; } this.stats.incInt(endRollbackId, 1); this.stats.incLong(rollbackDurationId, duration); }
public void endTxFailover(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(txFailoverInProgressId, -1); int endTxFailoverId; if (timedOut) { endTxFailoverId = txFailoverTimedOutId; } else if (failed) { endTxFailoverId = txFailoverFailedId; } else { endTxFailoverId = txFailoverId; } this.stats.incInt(endTxFailoverId, 1); this.stats.incLong(txFailoverDurationId, duration); }
public void endTxSynchronization(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(txSynchronizationInProgressId, -1); int endTxSynchronizationId; if (timedOut) { endTxSynchronizationId = txSynchronizationTimedOutId; } else if (failed) { endTxSynchronizationId = txSynchronizationFailedId; } else { endTxSynchronizationId = txSynchronizationId; } this.stats.incInt(endTxSynchronizationId, 1); this.stats.incLong(txSynchronizationDurationId, duration); } }
/** * Records that the specified get has ended * * @param startTime the value returned by {@link #startGet}. * @param timedOut true if get timed out * @param failed true if get failed */ public void endGet(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(getInProgressId, -1); int endGetId; if (timedOut) { endGetId = getTimedOutId; } else if (failed) { endGetId = getFailedId; } else { endGetId = getId; } this.stats.incInt(endGetId, 1); this.stats.incLong(getDurationId, duration); }
/** * Records that the specified primaryAck has ended * * @param startTime the value returned by {@link #startPrimaryAck}. * @param timedOut true if primaryAck timed out * @param failed true if primaryAck failed */ public void endPrimaryAck(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(primaryAckInProgressId, -1); int endPrimaryAckId; if (timedOut) { endPrimaryAckId = primaryAckTimedOutId; } else if (failed) { endPrimaryAckId = primaryAckFailedId; } else { endPrimaryAckId = primaryAckId; } this.stats.incInt(endPrimaryAckId, 1); this.stats.incLong(primaryAckDurationId, duration); }
/** * Records that the specified containsKey has ended * * @param startTime the value returned by {@link #startContainsKey}. * @param timedOut true if containsKey timed out * @param failed true if containsKey failed */ public void endContainsKey(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(containsKeyInProgressId, -1); int endContainsKeyId; if (timedOut) { endContainsKeyId = containsKeyTimedOutId; } else if (failed) { endContainsKeyId = containsKeyFailedId; } else { endContainsKeyId = containsKeyId; } this.stats.incInt(endContainsKeyId, 1); this.stats.incLong(containsKeyDurationId, duration); }
/** * Records that the specified query has ended * * @param startTime the value returned by {@link #startQuery}. * @param timedOut true if query timed out * @param failed true if query failed */ public void endQuery(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(queryInProgressId, -1); int endQueryId; if (timedOut) { endQueryId = queryTimedOutId; } else if (failed) { endQueryId = queryFailedId; } else { endQueryId = queryId; } this.stats.incInt(endQueryId, 1); this.stats.incLong(queryDurationId, duration); }
/** * Records that the specified stopCQ has ended * * @param startTime the value returned by {@link #startStopCQ}. * @param timedOut true if stopCQ timed out * @param failed true if stopCQ failed */ public void endStopCQ(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(stopCQInProgressId, -1); int endStopCQId; if (timedOut) { endStopCQId = stopCQTimedOutId; } else if (failed) { endStopCQId = stopCQFailedId; } else { endStopCQId = stopCQId; } this.stats.incInt(endStopCQId, 1); this.stats.incLong(stopCQDurationId, duration); }
/** * Records that the specified destroyRegion has ended * * @param startTime the value returned by {@link #startDestroyRegion}. * @param timedOut true if destroyRegion timed out * @param failed true if destroyRegion failed */ public void endDestroyRegion(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(destroyRegionInProgressId, -1); int endDestroyRegionId; if (timedOut) { endDestroyRegionId = destroyRegionTimedOutId; } else if (failed) { endDestroyRegionId = destroyRegionFailedId; } else { endDestroyRegionId = destroyRegionId; } this.stats.incInt(endDestroyRegionId, 1); this.stats.incLong(destroyRegionDurationId, duration); }
/** * Records that the specified clear has ended * * @param startTime the value returned by {@link #startClear}. * @param timedOut true if clear timed out * @param failed true if clear failed */ public void endClear(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(clearInProgressId, -1); int endClearId; if (timedOut) { endClearId = clearTimedOutId; } else if (failed) { endClearId = clearFailedId; } else { endClearId = clearId; } this.stats.incInt(endClearId, 1); this.stats.incLong(clearDurationId, duration); }
/** * Records that the specified unregisterInterest has ended * * @param startTime the value returned by {@link #startUnregisterInterest}. * @param timedOut true if unregisterInterest timed out * @param failed true if unregisterInterest failed */ public void endUnregisterInterest(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(unregisterInterestInProgressId, -1); int endUnregisterInterestId; if (timedOut) { endUnregisterInterestId = unregisterInterestTimedOutId; } else if (failed) { endUnregisterInterestId = unregisterInterestFailedId; } else { endUnregisterInterestId = unregisterInterestId; } this.stats.incInt(endUnregisterInterestId, 1); this.stats.incLong(unregisterInterestDurationId, duration); }
/** * Records that the specified makePrimary has ended * * @param startTime the value returned by {@link #startMakePrimary}. * @param timedOut true if makePrimary timed out * @param failed true if makePrimary failed */ public void endMakePrimary(long startTime, boolean timedOut, boolean failed) { long duration = getStatTime() - startTime; endClientOp(duration, timedOut, failed); this.stats.incInt(makePrimaryInProgressId, -1); int endMakePrimaryId; if (timedOut) { endMakePrimaryId = makePrimaryTimedOutId; } else if (failed) { endMakePrimaryId = makePrimaryFailedId; } else { endMakePrimaryId = makePrimaryId; } this.stats.incInt(endMakePrimaryId, 1); this.stats.incLong(makePrimaryDurationId, duration); }