@Override public synchronized void close() { for (Iterator<ConnectionStats> itr = statMap.values().iterator(); itr.hasNext();) { ConnectionStats stats = itr.next(); stats.close(); } statMap.clear(); endpointMap = Collections.emptyMap(); listener.clear(); }
@Override protected void endSendAttempt(ConnectionStats stats, long start) { stats.endAddPdxTypeSend(start, hasFailed()); }
@Override protected void endSendAttempt(ConnectionStats stats, long start) { stats.endClearSend(start, hasFailed()); }
public void endGetPDXIdForTypeSend(long startTime, boolean failed) { long duration = getStatTime() - startTime; endClientOpSend(duration, failed); this.sendStats.incInt(getPDXIdForTypeSendInProgressId, -1); int endGetPDXIdForTypeSendId; if (failed) { endGetPDXIdForTypeSendId = getPDXIdForTypeSendFailedId; } else { endGetPDXIdForTypeSendId = getPDXIdForTypeSendId; } this.stats.incInt(endGetPDXIdForTypeSendId, 1); this.stats.incLong(getPDXIdForTypeSendDurationId, 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); }
@Override protected void endAttempt(ConnectionStats stats, long start) { stats.endAddPdxType(start, hasTimedOut(), hasFailed()); }
@Override protected void endSendAttempt(ConnectionStats stats, long start) { stats.endCloseCQSend(start, hasFailed()); }
@Override protected void endAttempt(ConnectionStats stats, long start) { stats.endClear(start, hasTimedOut(), hasFailed()); } }
@Override protected void endAttempt(ConnectionStats stats, long start) { stats.endCloseCQ(start, hasTimedOut(), hasFailed()); } }
private synchronized ConnectionStats getStats(ServerLocation location) { ConnectionStats stats = statMap.get(location); if (stats == null) { String statName = poolName + "-" + location.toString(); PoolImpl pool = (PoolImpl) PoolManager.find(this.poolName); if (pool != null) { if (pool.getGatewaySender() != null) { stats = new ConnectionStats(new DummyStatisticsFactory(), statName, this.poolStats/* , this.gatewayStats */); } } if (stats == null) { stats = new ConnectionStats(ds, statName, this.poolStats/* * , this.gatewayStats */); } statMap.put(location, stats); } return stats; }
public void endSizeSend(long startTime, boolean failed) { long duration = getStatTime() - startTime; endClientOpSend(duration, failed); this.sendStats.incInt(sizeSendInProgressId, -1); int endSizeSendId; if (failed) { endSizeSendId = sizeSendFailedId; } else { endSizeSendId = sizeSendId; } this.sendStats.incInt(endSizeSendId, 1); this.stats.incLong(sizeSendDurationId, 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); }
@Override protected void endAttempt(ConnectionStats stats, long start) { stats.endAddPdxType(start, hasTimedOut(), hasFailed()); }
public void endInvalidateSend(long startTime, boolean failed) { long duration = getStatTime() - startTime; endClientOpSend(duration, failed); this.sendStats.incInt(invalidateSendInProgressId, -1); int endInvalidateSendId; if (failed) { endInvalidateSendId = invalidateSendFailedId; } else { endInvalidateSendId = invalidateSendId; } this.sendStats.incInt(endInvalidateSendId, 1); this.stats.incLong(invalidateSendDurationId, 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); }
@Override protected void endSendAttempt(ConnectionStats stats, long start) { stats.endAddPdxTypeSend(start, hasFailed()); }
public void endGetPDXTypeByIdSend(long startTime, boolean failed) { long duration = getStatTime() - startTime; endClientOpSend(duration, failed); this.sendStats.incInt(getPDXTypeByIdSendInProgressId, -1); int endGetPDXTypeByIdSendId; if (failed) { endGetPDXTypeByIdSendId = getPDXTypeByIdSendFailedId; } else { endGetPDXTypeByIdSendId = getPDXTypeByIdSendId; } this.sendStats.incInt(endGetPDXTypeByIdSendId, 1); this.stats.incLong(getPDXTypeByIdSendDurationId, duration); }
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 endGetEntrySend(long startTime, boolean failed) { long duration = getStatTime() - startTime; endClientOpSend(duration, failed); this.sendStats.incInt(getEntrySendInProgressId, -1); int endGetEntrySendId; if (failed) { endGetEntrySendId = getEntrySendFailedId; } else { endGetEntrySendId = getEntrySendId; } this.sendStats.incInt(endGetEntrySendId, 1); this.stats.incLong(getEntrySendDurationId, 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); }