@Override public Long getValue() { return cache.getStatistics().cacheMissCount(); } });
public Map<String, Object> getCacheRuntimeInformationAsJson(Cache cache) { LinkedHashMap<String, Object> json = new LinkedHashMap<>(); StatisticsGateway statistics = cache.getStatistics(); json.put("Get Time in milliseconds", getStatisticsFrom(statistics.cacheGetOperation())); json.put("Put Time in milliseconds", getStatisticsFrom(statistics.cachePutOperation())); json.put("Remove Time in milliseconds", getStatisticsFrom(statistics.cacheRemoveOperation())); json.put("Cache Size", statistics.getSize()); LinkedHashMap<String, Long> cacheCount = new LinkedHashMap<>(); cacheCount.put("Hits", statistics.cacheHitCount()); cacheCount.put("Miss", statistics.cacheMissCount()); cacheCount.put("Expired", statistics.cacheExpiredCount()); cacheCount.put("Eviction", statistics.cacheEvictedCount()); cacheCount.put("Put", statistics.cachePutCount()); cacheCount.put("Remove", statistics.cacheRemoveCount()); json.put("Cache Counts", cacheCount); json.put("Cache Size (Disk)", statistics.getLocalDiskSize()); json.put("Cache Count (Disk)", statistics.localDiskHitCount()); return json; }
/** * Warning. This statistic is recorded as a long. If the statistic is large than Integer#MAX_VALUE * precision will be lost. * * @return the number of times a requested element was not found in the cache */ public long getCacheMisses() { return statistics.cacheMissCount(); }
/** * {@inheritDoc} */ public long getCacheMissCount() { long count = 0; for (String name : cacheManager.getCacheNames()) { Cache cache = cacheManager.getCache(name); if (cache != null) { count += cache.getStatistics().cacheMissCount(); } } return count; }
/** * {@inheritDoc} */ public double getCacheHitPercentage() { long hits = statistics.cacheHitCount(); long misses = statistics.cacheMissCount(); long total = hits + misses; return getPercentage(hits, total); }
/** * {@inheritDoc} */ public double getCacheMissPercentage() { long hits = statistics.cacheHitCount(); long misses = statistics.cacheMissCount(); long total = hits + misses; return getPercentage(misses, total); }
/** * {@inheritDoc} */ @Override public long getCacheMissCount() { try { return cache.getStatistics().cacheMissCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * Warning. This statistic is recorded as a long. If the statistic is large than Integer#MAX_VALUE * precision will be lost. * * @return the number of times a requested element was not found in the cache */ public long getCacheMisses() { return statistics.cacheMissCount(); }
/** * Warning. This statistic is recorded as a long. If the statistic is large than Integer#MAX_VALUE * precision will be lost. * * @return the number of times a requested element was not found in the cache */ public long getCacheMisses() { return statistics.cacheMissCount(); }
@Override public Long getValue() { return cache.getStatistics().cacheMissCount(); } });
/** * {@inheritDoc} */ public long getCacheMissCount() { long count = 0; for (String name : cacheManager.getCacheNames()) { Cache cache = cacheManager.getCache(name); if (cache != null) { count += cache.getStatistics().cacheMissCount(); } } return count; }
/** * {@inheritDoc} */ public long getCacheMissCount() { long count = 0; for (String name : cacheManager.getCacheNames()) { Cache cache = cacheManager.getCache(name); if (cache != null) { count += cache.getStatistics().cacheMissCount(); } } return count; }
/** * {@inheritDoc} */ public double getCacheMissPercentage() { long hits = statistics.cacheHitCount(); long misses = statistics.cacheMissCount(); long total = hits + misses; return getPercentage(misses, total); }
/** * {@inheritDoc} */ public double getCacheMissPercentage() { long hits = statistics.cacheHitCount(); long misses = statistics.cacheMissCount(); long total = hits + misses; return getPercentage(misses, total); }
/** * {@inheritDoc} */ public double getCacheHitPercentage() { long hits = statistics.cacheHitCount(); long misses = statistics.cacheMissCount(); long total = hits + misses; return getPercentage(hits, total); }
/** * {@inheritDoc} */ public double getCacheHitPercentage() { long hits = statistics.cacheHitCount(); long misses = statistics.cacheMissCount(); long total = hits + misses; return getPercentage(hits, total); }
/** * {@inheritDoc} */ @Override public long getCacheMissCount() { try { return cache.getStatistics().cacheMissCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getCacheMissCount() { try { return cache.getStatistics().cacheMissCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public void clear() { pCacheHits = getEhcache().getStatistics().cacheHitCount(); pCacheMisses = getEhcache().getStatistics().cacheMissCount(); pCacheGets = getEhcache().getStatistics().cacheGetOperation().count().value(); pCachePuts = getEhcache().getStatistics().cachePutCount(); pCacheRemovals = getEhcache().getStatistics().cacheRemoveCount(); pCacheEvictions = getEhcache().getStatistics().cacheEvictedCount(); }
@Override public void clear() { pCacheHits = getEhcache().getStatistics().cacheHitCount(); pCacheMisses = getEhcache().getStatistics().cacheMissCount(); pCacheGets = getEhcache().getStatistics().cacheGetOperation().count().value(); pCachePuts = getEhcache().getStatistics().cachePutCount(); pCacheRemovals = getEhcache().getStatistics().cacheRemoveCount(); pCacheEvictions = getEhcache().getStatistics().cacheEvictedCount(); }