@Override public Long getValue() { return cache.getStatistics().localHeapHitCount(); } });
/** * Number of times a requested item was found in the Memory Store. * * @return the number of times a requested item was found in memory */ public long getInMemoryHits() { return statistics.localHeapHitCount(); }
/** * {@inheritDoc} */ public double getInMemoryHitPercentage() { long hits = statistics.localHeapHitCount(); long misses = statistics.localHeapMissCount(); long total = hits + misses; return getPercentage(hits, total); }
/** * {@inheritDoc} */ @Override public long getInMemoryHitCount() { try { return cache.getStatistics().localHeapHitCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * Number of times a requested item was found in the Memory Store. * * @return the number of times a requested item was found in memory */ public long getInMemoryHits() { return statistics.localHeapHitCount(); }
/** * Number of times a requested item was found in the Memory Store. * * @return the number of times a requested item was found in memory */ public long getInMemoryHits() { return statistics.localHeapHitCount(); }
@Override public Long getValue() { return cache.getStatistics().localHeapHitCount(); } });
/** * {@inheritDoc} */ public double getInMemoryHitPercentage() { long hits = statistics.localHeapHitCount(); long misses = statistics.localHeapMissCount(); long total = hits + misses; return getPercentage(hits, total); }
/** * {@inheritDoc} */ @Override public long getInMemoryHitCount() { try { return cache.getStatistics().localHeapHitCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getInMemoryHitCount() { try { return cache.getStatistics().localHeapHitCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ public double getInMemoryHitPercentage() { long hits = statistics.localHeapHitCount(); long misses = statistics.localHeapMissCount(); long total = hits + misses; return getPercentage(hits, total); }
cacheStats.put("MissCount", statisticsGateway.cacheMissCount()); cacheStats.put("LocalHeapSize", statisticsGateway.getLocalHeapSize()); cacheStats.put("LocalHeapHitCount", statisticsGateway.localHeapHitCount()); cacheStats.put("LocalHeapMissCount", statisticsGateway.localHeapMissCount()); cacheStats.put("LocalDiskHitCount", statisticsGateway.localDiskHitCount());
(Gauge<Long>) () -> cache.getStatistics().localHeapHitCount());