@Override public long getRemoveElementSuccessRate() { try { return cache.getStatistics().getExtended().removeElement().component(CacheOperationOutcomes.RemoveElementOutcome.SUCCESS).rate().value().longValue(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getRemoveElementMissRate() { try { return cache.getStatistics().getExtended().removeElement().component(CacheOperationOutcomes.RemoveElementOutcome.FAILURE).rate().value().longValue(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public SampledCounter getRemoveElementMissSample() { return new SampledCounterProxy(cache.getStatistics().getExtended().removeElement().component( CacheOperationOutcomes.RemoveElementOutcome.FAILURE).rate()); }
@Override public SampledCounter getRemoveElementSuccessSample() { return new SampledCounterProxy(cache.getStatistics().getExtended().removeElement().component( CacheOperationOutcomes.RemoveElementOutcome.SUCCESS).rate()); }
@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 getRemoveElementSuccessCount() { try { return cache.getStatistics().getExtended().removeElement().component( CacheOperationOutcomes.RemoveElementOutcome.SUCCESS).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getRemoveElementSuccessRate() { try { return cache.getStatistics().getExtended().removeElement().component(CacheOperationOutcomes.RemoveElementOutcome.SUCCESS).rate().value().longValue(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getRemoveElementMissRate() { try { return cache.getStatistics().getExtended().removeElement().component(CacheOperationOutcomes.RemoveElementOutcome.FAILURE).rate().value().longValue(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getRemoveElementMissRate() { try { return cache.getStatistics().getExtended().removeElement().component(CacheOperationOutcomes.RemoveElementOutcome.FAILURE).rate().value().longValue(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getRemoveElementSuccessRate() { try { return cache.getStatistics().getExtended().removeElement().component(CacheOperationOutcomes.RemoveElementOutcome.SUCCESS).rate().value().longValue(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public SampledCounter getRemoveElementSuccessSample() { return new SampledCounterProxy(cache.getStatistics().getExtended().removeElement().component( CacheOperationOutcomes.RemoveElementOutcome.SUCCESS).rate()); }
@Override public SampledCounter getRemoveElementMissSample() { return new SampledCounterProxy(cache.getStatistics().getExtended().removeElement().component( CacheOperationOutcomes.RemoveElementOutcome.FAILURE).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 getRemoveElementSuccessSample() { return new SampledCounterProxy(cache.getStatistics().getExtended().removeElement().component( CacheOperationOutcomes.RemoveElementOutcome.SUCCESS).rate()); }
@Override public SampledCounter getRemoveElementMissSample() { return new SampledCounterProxy(cache.getStatistics().getExtended().removeElement().component( CacheOperationOutcomes.RemoveElementOutcome.FAILURE).rate()); }
@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 getRemoveElementSuccessCount() { try { return cache.getStatistics().getExtended().removeElement().component( CacheOperationOutcomes.RemoveElementOutcome.SUCCESS).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 getRemoveElementMissCount() { try { return cache.getStatistics().getExtended().removeElement().component( CacheOperationOutcomes.RemoveElementOutcome.FAILURE).count().value(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * 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()); }