/** * {@inheritDoc} */ @Override public long getCacheExpirationRate() { return cache.getStatistics().cacheExpiredOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ public Map<String, int[]> getRegionCacheSamples() { Map<String, int[]> rv = new HashMap<String, int[]>(); for (String name : cacheManager.getCacheNames()) { Cache cache = cacheManager.getCache(name); if (cache != null) { rv.put(name, new int[] {cache.getStatistics().cacheHitOperation().rate().value().intValue() , cache.getStatistics().cacheMissNotFoundOperation().rate().value().intValue() , cache.getStatistics().cacheMissExpiredOperation().rate().value().intValue() , cache.getStatistics().cachePutOperation().rate().value().intValue()}); } } return rv; }
/** * {@inheritDoc} */ @Override public long getCacheHitRate() { return cache.getStatistics().cacheHitOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getCacheMissRate() { return cache.getStatistics().cacheMissOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getTransactionRollbackRate() { return cache.getStatistics().xaRollbackOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getCacheRemoveRate() { return cache.getStatistics().cacheRemoveOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getCacheMissExpiredMostRecentSample() { return cache.getStatistics().cacheMissExpiredOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getCacheOffHeapMissRate() { return cache.getStatistics().localOffHeapMissOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getTransactionCommitRate() { return cache.getStatistics().xaRecoveryOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getCacheEvictionRate() { return cache.getStatistics().cacheEvictionOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getCacheUpdateRate() { return cache.getStatistics().cachePutReplacedOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getCacheInMemoryHitRate() { return cache.getStatistics().localHeapHitOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getCacheMissNotFoundMostRecentSample() { return cache.getStatistics().cacheMissNotFoundOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getCachePutRate() { return cache.getStatistics().cachePutOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getCacheOffHeapHitRate() { return cache.getStatistics().localOffHeapHitOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getCacheOnDiskHitRate() { return cache.getStatistics().localDiskHitOperation().rate().value().longValue(); }
/** * {@inheritDoc} */ @Override public long getCacheInMemoryMissRate() { return cache.getStatistics().localHeapMissOperation().rate().value().longValue(); }