@Override public long value(T... results) { return compoundOp.compound(EnumSet.copyOf(Arrays.asList(results))).count().value(); }
@Override public long getReplaceTwoArgMissCount() { try { return cache.getStatistics().getExtended().replaceTwoArg().component(CacheOperationOutcomes.ReplaceTwoArgOutcome.SUCCESS).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long value(T result) { return compoundOp.component(result).count().value(); }
@Override public long getNonStopRejoinTimeoutCount() { try { return cache.getStatistics().getExtended().nonstop().component(NonStopOperationOutcomes.REJOIN_TIMEOUT).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getCacheClusterRejoinCount() { try { return cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.REJOINED).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getReplaceTwoArgMissCount() { try { return cache.getStatistics().getExtended().replaceTwoArg().component(CacheOperationOutcomes.ReplaceTwoArgOutcome.SUCCESS).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getReplaceTwoArgSuccessCount() { try { return cache.getStatistics().getExtended().replaceTwoArg().component(CacheOperationOutcomes.ReplaceTwoArgOutcome.SUCCESS).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getReplaceOneArgSuccessCount() { try { return cache.getStatistics().getExtended().replaceOneArg().component(CacheOperationOutcomes.ReplaceOneArgOutcome.SUCCESS).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getCacheClusterOnlineCount() { try { return cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.ONLINE).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getCacheClusterOfflineCount() { try { return cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.OFFLINE).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getReplaceOneArgMissCount() { try { return cache.getStatistics().getExtended().replaceOneArg().component(CacheOperationOutcomes.ReplaceOneArgOutcome.FAILURE).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getRemoveElementSuccessCount() { try { return cache.getStatistics().getExtended().removeElement().component( CacheOperationOutcomes.RemoveElementOutcome.SUCCESS).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getPutIfAbsentSuccessCount() { try { return cache.getStatistics().getExtended().putIfAbsent().component(CacheOperationOutcomes.PutIfAbsentOutcome.SUCCESS).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getNonStopTimeoutCount() { try { return cache.getStatistics().getExtended().nonstop().component(NonStopOperationOutcomes.TIMEOUT).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getRemoveElementMissCount() { try { return cache.getStatistics().getExtended().removeElement().component( CacheOperationOutcomes.RemoveElementOutcome.FAILURE).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getPutIfAbsentMissCount() { try { return cache.getStatistics().getExtended().putIfAbsent().component( CacheOperationOutcomes.PutIfAbsentOutcome.FAILURE).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
private void recordResult(List<AttributeProxy> proxies, final Result result, String longerName) { recordLongStatistic(proxies, longerName + ".count", "Statistic Counter", result.count()); recordDoubleStatistic(proxies, longerName + ".rate", "Statistic Rate", result.rate()); recordLongStatistic(proxies, longerName + ".latencyMin", "Statistic Latency Minimum", result.latency().minimum()); recordLongStatistic(proxies, longerName + ".latencyMax", "Statistic Latency Maximum", result.latency().maximum()); recordDoubleStatistic(proxies, longerName + ".latencyAvg", "Statistic Latency Average", result.latency().average()); }
@Override public long getNonStopFailureCount() { try { return cache.getStatistics().getExtended().nonstop().component(NonStopOperationOutcomes.FAILURE).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getNonStopSuccessCount() { try { return cache.getStatistics().getExtended().nonstop().component(NonStopOperationOutcomes.SUCCESS).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public Long getValue() { return cache.getStatistics().cacheEvictionOperation().count().value(); } });