@Override public long getCacheClusterOfflineMostRecentSample() { return cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.OFFLINE).rate().value().longValue(); }
@Override public long getCacheClusterOnlineMostRecentSample() { return cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.ONLINE).rate().value().longValue(); }
@Override public long getCacheClusterRejoinMostRecentSample() { return cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.REJOINED).rate().value().longValue(); }
@Override public SampledCounter getCacheClusterRejoinSample() { return new SampledRateCounterProxy(cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.REJOINED).rate()); }
@Override public SampledCounter getCacheClusterOfflineSample() { return new SampledRateCounterProxy(cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.OFFLINE).rate()); }
@Override public SampledCounter getCacheClusterOnlineSample() { return new SampledRateCounterProxy(cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.ONLINE).rate()); }
@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 getCacheClusterOnlineCount() { try { return cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.ONLINE).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 SampledCounter getCacheClusterOfflineSample() { return new SampledRateCounterProxy(cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.OFFLINE).rate()); }
/** * Instantiates a new core statistics impl. * * @param extended the extended */ public CoreStatisticsImpl(ExtendedStatistics extended) { this.extended = extended; this.cacheGet = asCountOperation(extended.get()); this.cachePut = asCountOperation(extended.put()); this.cacheRemove = asCountOperation(extended.remove()); this.cacheReplace1 = asCountOperation(extended.replaceOneArg()); this.cacheReplace2 = asCountOperation(extended.replaceOneArg()); this.cachePutIfAbsent = asCountOperation(extended.putIfAbsent()); this.cacheRemoveElement = asCountOperation(extended.removeElement()); this.localHeapGet = asCountOperation(extended.heapGet()); this.localHeapPut = asCountOperation(extended.heapPut()); this.localHeapRemove = asCountOperation(extended.heapRemove()); this.localOffHeapGet = asCountOperation(extended.offheapGet()); this.localOffHeapPut = asCountOperation(extended.offheapPut()); this.localOffHeapRemove = asCountOperation(extended.offheapRemove()); this.localDiskGet = asCountOperation(extended.diskGet()); this.localDiskPut = asCountOperation(extended.diskPut()); this.localDiskRemove = asCountOperation(extended.diskRemove()); this.xaCommit = asCountOperation(extended.xaCommit()); this.xaRecovery = asCountOperation(extended.xaRecovery()); this.xaRollback = asCountOperation(extended.xaRollback()); this.evicted = asCountOperation(extended.eviction()); this.expired = asCountOperation(extended.expiry()); this.cacheClusterEvent = asCountOperation(extended.clusterEvent()); }
@Override public SampledCounter getCacheClusterOnlineSample() { return new SampledRateCounterProxy(cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.ONLINE).rate()); }
@Override public SampledCounter getCacheClusterOnlineSample() { return new SampledRateCounterProxy(cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.ONLINE).rate()); }
@Override public SampledCounter getCacheClusterOfflineSample() { return new SampledRateCounterProxy(cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.OFFLINE).rate()); }
@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 getCacheClusterRejoinCount() { try { return cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.REJOINED).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 getCacheClusterRejoinCount() { try { return cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.REJOINED).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 getCacheClusterOnlineCount() { try { return cache.getStatistics().getExtended().clusterEvent().component(ClusterEventOutcomes.ONLINE).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }