ehcache

net.sf.ehcache.management.sampled
Interface ComprehensiveCacheSampler

All Superinterfaces:
CacheSampler, LiveCacheStatistics, SampledCacheStatistics
All Known Implementing Classes:
ComprehensiveCacheSamplerImpl

public interface ComprehensiveCacheSampler
extends CacheSampler

A CacheSampler interface that also exposes SampledCounter objects for all sampled statistics, rather than just the last sampled value.

Author:
byoukste

Method Summary
 SampledRateCounter getAverageGetTimeNanosSample()
          Get the SampledRateCounter for average time taken for get() operation in the cache
 SampledRateCounter getAverageGetTimeSample()
          Get the SampledRateCounter for average time taken for get() operation in the cache
 SampledRateCounter getAverageSearchTimeSample()
          Get the SampledRateCounter for average search execution time for searches finishing within the last sample period
 SampledCounter getCacheElementEvictedSample()
          Get the SampledCounter element evicted from cache
 SampledCounter getCacheElementExpiredSample()
          Get the SampledCounter element expired from cache
 SampledCounter getCacheElementPutSample()
          Get the SampledCounter element puts in the cache
 SampledCounter getCacheElementRemovedSample()
          Get the SampledCounter element removed from cache
 SampledCounter getCacheElementUpdatedSample()
          Get the SampledCounter element updates , i.e.
 SampledCounter getCacheHitInMemorySample()
          Get the SampledCounter for in-memory cache hit
 SampledCounter getCacheHitOffHeapSample()
          Get the SampledCounter for off-heap cache hit
 SampledCounter getCacheHitOnDiskSample()
          Get the SampledCounter for on-disk cache hit
 SampledCounter getCacheHitRatioSample()
          Get the SampledCounter for cache hit ratio
 SampledCounter getCacheHitSample()
          Get the SampledCounter for cache hit
 SampledCounter getCacheMissExpiredSample()
          Get the SampledCounter for cache miss as result of the element getting expired
 SampledCounter getCacheMissInMemorySample()
          Get the SampledCounter for in-memory cache miss
 SampledCounter getCacheMissNotFoundSample()
          Get the SampledCounter for cache miss as result of the element not found in cache
 SampledCounter getCacheMissOffHeapSample()
          Get the SampledCounter for off-heap cache miss
 SampledCounter getCacheMissOnDiskSample()
          Get the SampledCounter for on-disk cache miss
 SampledCounter getCacheMissSample()
          Get the SampledCounter for cache miss
 SampledCounter getCacheXaCommitsSample()
          Get the SampledCounter for number of XA Transaction commits that have completed in the interval
 SampledCounter getCacheXaRollbacksSample()
          Get the SampledCounter for number of XA Transaction rollbacks that have completed in the interval
 SampledCounter getSearchesPerSecondSample()
          Get the SampledCounter for number of searches that have finished in the interval
 
Methods inherited from interface net.sf.ehcache.management.sampled.CacheSampler
clearStatistics, disableSampledStatistics, disableStatistics, enableSampledStatistics, enableStatistics, flush, getCacheAverageGetTime, getCacheAverageSearchTime, getCacheEvictionRate, getCacheExpirationRate, getCacheHitRate, getCacheInMemoryHitRate, getCacheInMemoryMissRate, getCacheMissRate, getCacheOffHeapHitRate, getCacheOffHeapMissRate, getCacheOnDiskHitRate, getCacheOnDiskMissRate, getCachePutRate, getCacheRemoveRate, getCacheSearchRate, getCacheUpdateRate, getDiskExpiryThreadIntervalSeconds, getHasWriteBehindWriter, getMaxBytesLocalDisk, getMaxBytesLocalDiskAsString, getMaxBytesLocalHeap, getMaxBytesLocalHeapAsString, getMaxBytesLocalOffHeap, getMaxBytesLocalOffHeapAsString, getMaxElementsOnDisk, getMaxEntriesLocalDisk, getMaxEntriesLocalHeap, getMemoryStoreEvictionPolicy, getPinnedToStore, getSearchable, getStatus, getTerracottaConsistency, getTimeToIdleSeconds, getTimeToLiveSeconds, getTransactional, getTransactionCommitRate, getTransactionRollbackRate, getWriterConcurrency, getWriterMaxQueueSize, getWriterQueueLength, isClusterBulkLoadEnabled, isDiskPersistent, isEnabled, isEternal, isLoggingEnabled, isNodeBulkLoadEnabled, isOverflowToDisk, isPinned, isTerracottaClustered, removeAll, setDiskExpiryThreadIntervalSeconds, setDiskPersistent, setEnabled, setEternal, setLoggingEnabled, setMaxBytesLocalDisk, setMaxBytesLocalDiskAsString, setMaxBytesLocalHeap, setMaxBytesLocalHeapAsString, setMaxElementsOnDisk, setMaxEntriesLocalDisk, setMaxEntriesLocalHeap, setMemoryStoreEvictionPolicy, setNodeBulkLoadEnabled, setOverflowToDisk, setStatisticsEnabled, setTimeToIdleSeconds, setTimeToLiveSeconds
 
Methods inherited from interface net.sf.ehcache.statistics.LiveCacheStatistics
getAverageGetTimeMillis, getAverageGetTimeNanos, getCacheHitCount, getCacheHitRatio, getCacheMissCount, getCacheMissCountExpired, getCacheName, getEvictedCount, getExpiredCount, getInMemoryHitCount, getInMemoryMissCount, getInMemorySize, getLocalDiskSize, getLocalDiskSizeInBytes, getLocalHeapSize, getLocalHeapSizeInBytes, getLocalOffHeapSize, getLocalOffHeapSizeInBytes, getMaxGetTimeMillis, getMaxGetTimeNanos, getMinGetTimeMillis, getMinGetTimeNanos, getOffHeapHitCount, getOffHeapMissCount, getOffHeapSize, getOnDiskHitCount, getOnDiskMissCount, getOnDiskSize, getPutCount, getRemovedCount, getSize, getStatisticsAccuracy, getStatisticsAccuracyDescription, getUpdateCount, getXaCommitCount, getXaRecoveredCount, getXaRollbackCount, isStatisticsEnabled
 
Methods inherited from interface net.sf.ehcache.statistics.sampled.SampledCacheStatistics
dispose, getAverageGetTimeMostRecentSample, getAverageGetTimeNanosMostRecentSample, getAverageSearchTime, getCacheElementEvictedMostRecentSample, getCacheElementExpiredMostRecentSample, getCacheElementPutMostRecentSample, getCacheElementRemovedMostRecentSample, getCacheElementUpdatedMostRecentSample, getCacheHitInMemoryMostRecentSample, getCacheHitMostRecentSample, getCacheHitOffHeapMostRecentSample, getCacheHitOnDiskMostRecentSample, getCacheHitRatioMostRecentSample, getCacheMissExpiredMostRecentSample, getCacheMissInMemoryMostRecentSample, getCacheMissMostRecentSample, getCacheMissNotFoundMostRecentSample, getCacheMissOffHeapMostRecentSample, getCacheMissOnDiskMostRecentSample, getCacheXaCommitsMostRecentSample, getCacheXaRollbacksMostRecentSample, getSearchesPerSecond, getStatisticsAccuracy, getStatisticsAccuracyDescription, isSampledStatisticsEnabled
 

Method Detail

getCacheHitSample

SampledCounter getCacheHitSample()
Get the SampledCounter for cache hit

Returns:
the SampledCounter for cache hit count

getCacheHitRatioSample

SampledCounter getCacheHitRatioSample()
Get the SampledCounter for cache hit ratio

Returns:
the SampledCounter for cache hit ratio

getCacheHitInMemorySample

SampledCounter getCacheHitInMemorySample()
Get the SampledCounter for in-memory cache hit

Returns:
the SampledCounter for cache hit count in memory

getCacheHitOffHeapSample

SampledCounter getCacheHitOffHeapSample()
Get the SampledCounter for off-heap cache hit

Returns:
the SampledCounter for cache hit count in off-heap

getCacheHitOnDiskSample

SampledCounter getCacheHitOnDiskSample()
Get the SampledCounter for on-disk cache hit

Returns:
the SampledCounter for cache hit count on disk

getCacheMissSample

SampledCounter getCacheMissSample()
Get the SampledCounter for cache miss

Returns:
the SampledCounter for cache miss count

getCacheMissInMemorySample

SampledCounter getCacheMissInMemorySample()
Get the SampledCounter for in-memory cache miss

Returns:
the SampledCounter for cache miss count in memory

getCacheMissOffHeapSample

SampledCounter getCacheMissOffHeapSample()
Get the SampledCounter for off-heap cache miss

Returns:
the SampledCounter for cache miss count in off-heap

getCacheMissOnDiskSample

SampledCounter getCacheMissOnDiskSample()
Get the SampledCounter for on-disk cache miss

Returns:
the SampledCounter for cache miss count on disk

getCacheMissExpiredSample

SampledCounter getCacheMissExpiredSample()
Get the SampledCounter for cache miss as result of the element getting expired

Returns:
the SampledCounter for cache miss count and the reason for miss being the element got expired

getCacheMissNotFoundSample

SampledCounter getCacheMissNotFoundSample()
Get the SampledCounter for cache miss as result of the element not found in cache

Returns:
the SampledCounter for cache miss not found count

getCacheElementEvictedSample

SampledCounter getCacheElementEvictedSample()
Get the SampledCounter element evicted from cache

Returns:
the SampledCounter for element evicted count

getCacheElementRemovedSample

SampledCounter getCacheElementRemovedSample()
Get the SampledCounter element removed from cache

Returns:
the SampledCounter for element removed count

getCacheElementExpiredSample

SampledCounter getCacheElementExpiredSample()
Get the SampledCounter element expired from cache

Returns:
Most recent value for element expired count

getCacheElementPutSample

SampledCounter getCacheElementPutSample()
Get the SampledCounter element puts in the cache

Returns:
the SampledCounter for number of element puts

getCacheElementUpdatedSample

SampledCounter getCacheElementUpdatedSample()
Get the SampledCounter element updates , i.e. put() on elements with already existing keys in the cache

Returns:
the SampledCounterd value for element update count

getAverageGetTimeSample

SampledRateCounter getAverageGetTimeSample()
Get the SampledRateCounter for average time taken for get() operation in the cache

Returns:
the SampledRateCounter of average get time taken for a get operation

getAverageGetTimeNanosSample

SampledRateCounter getAverageGetTimeNanosSample()
Get the SampledRateCounter for average time taken for get() operation in the cache

Returns:
the SampledRateCounter of average get time taken for a get operation

getAverageSearchTimeSample

SampledRateCounter getAverageSearchTimeSample()
Get the SampledRateCounter for average search execution time for searches finishing within the last sample period

Returns:
the SampledRateCounter of average search time taken

getSearchesPerSecondSample

SampledCounter getSearchesPerSecondSample()
Get the SampledCounter for number of searches that have finished in the interval

Returns:
the SampledCounter for number of searches

getCacheXaCommitsSample

SampledCounter getCacheXaCommitsSample()
Get the SampledCounter for number of XA Transaction commits that have completed in the interval

Returns:
the SampledCounter for number XA Transaction commits

getCacheXaRollbacksSample

SampledCounter getCacheXaRollbacksSample()
Get the SampledCounter for number of XA Transaction rollbacks that have completed in the interval

Returns:
the SampledCounter for number XA Transaction rollbacks

ehcache

Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.