public long getElementCountOnDisk() { return cache.getDiskStoreSize(); }
public long getElementCountOnDisk() { return cache.getDiskStoreSize(); }
/** * {@inheritDoc} * * @see net.sf.ehcache.hibernate.management.api.EhcacheStats#getNumberOfElementsOnDisk(java.lang.String) */ public int getNumberOfElementsOnDisk(String region) { Cache cache = this.cacheManager.getCache(region); if (cache != null) { return cache.getDiskStoreSize(); } else { return -1; } }
/** * @return The current size of the cache. * * Note that this does not call getSize on the underlying cache, which is very expensive. This * will not include the size of remote caches. */ public long getSize() { return cache.getMemoryStoreSize() + cache.getDiskStoreSize(); } }
/** * @return The current size of the cache. * * Note that this does not call getSize on the underlying cache, which is very expensive. This * will not include the size of remote caches. */ public long getSize() { return cache.getMemoryStoreSize() + cache.getDiskStoreSize(); } }
/** * @return The current size of the cache. * * Note that this does not call getSize on the underlying cache, which is very expensive. This * will not include the size of remote caches. */ public long getSize() { return cache.getMemoryStoreSize() + cache.getDiskStoreSize(); } }
/** * @return The current size of the cache. * * Note that this does not call getSize on the underlying cache, which is very expensive. This * will not include the size of remote caches. */ public long getSize() { return cache.getMemoryStoreSize() + cache.getDiskStoreSize(); } }
/** * @return The current size of the cache. * * Note that this does not call getSize on the underlying cache, which is very expensive. This * will not include the size of remote caches. */ public long getSize() { return cache.getMemoryStoreSize() + cache.getDiskStoreSize(); } }
state.setDiskStoreSize(cache.getDiskStoreSize()); state.setAverageGetTime(statistics.getAverageGetTime()); state.setCacheHits(statistics.getCacheHits());
/** * {@inheritDoc} * <p/> * Note, the {@link #getSize} method will have the same value as the size * reported by Statistics for the statistics accuracy of * {@link Statistics#STATISTICS_ACCURACY_BEST_EFFORT}. */ public Statistics getStatistics() throws IllegalStateException { int size = getSizeBasedOnAccuracy(getLiveCacheStatistics() .getStatisticsAccuracy()); return new Statistics(this, getLiveCacheStatistics() .getStatisticsAccuracy(), getLiveCacheStatistics() .getCacheHitCount(), getLiveCacheStatistics() .getOnDiskHitCount(), getLiveCacheStatistics() .getOffHeapHitCount(), getLiveCacheStatistics() .getInMemoryHitCount(), getLiveCacheStatistics() .getCacheMissCount(), getLiveCacheStatistics() .getOnDiskMissCount(), getLiveCacheStatistics() .getOffHeapMissCount(), getLiveCacheStatistics() .getInMemoryMissCount(), size, getAverageGetTime(), getLiveCacheStatistics().getEvictedCount(), getMemoryStoreSize(), getOffHeapStoreSize(), getDiskStoreSize(), getSearchesPerSecond(), getAverageSearchTime(), getLiveCacheStatistics().getWriterQueueLength()); }