|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.management.sampled.SampledCache
public class SampledCache
An implementation of SampledCacheMBean
Constructor Summary | |
---|---|
SampledCache(Ehcache cache)
Constructor accepting the backing Ehcache |
Method Summary | |
---|---|
void |
clearStatistics()
Clear both sampled and cumulative statistics |
void |
disableSampledStatistics()
Disables statistics collection |
void |
disableStatistics()
Disables statistics collection. |
void |
dispose()
Method used to dispose this statistics |
void |
enableSampledStatistics()
Enables statistics collection. |
void |
enableStatistics()
Enables statistics collection |
void |
flush()
Flushes all cache items from memory to the disk store, and from the DiskStore to disk. |
float |
getAverageGetTimeMillis()
Average time in milli seconds taken to get an element from the cache. |
long |
getAverageGetTimeMostRecentSample()
Get most recent value for average time taken for get() operation in the cache |
long |
getCacheElementEvictedMostRecentSample()
Get most recent value element evicted from cache |
long |
getCacheElementExpiredMostRecentSample()
Get most recent value element expired from cache |
long |
getCacheElementPutMostRecentSample()
Get most recent value element puts in the cache |
long |
getCacheElementRemovedMostRecentSample()
Get most recent value element removed from cache |
long |
getCacheElementUpdatedMostRecentSample()
Get most recent value element updates , i.e. |
long |
getCacheHitCount()
The number of times a requested item was found in the cache. |
long |
getCacheHitInMemoryMostRecentSample()
Get most recent value for in-memory cache hit |
long |
getCacheHitMostRecentSample()
Get most recent value for cache hit |
long |
getCacheHitOnDiskMostRecentSample()
Get most recent value for on-disk cache hit |
long |
getCacheMissCount()
|
long |
getCacheMissCountExpired()
|
long |
getCacheMissExpiredMostRecentSample()
Get most recent value for cache miss as result of the element getting expired |
long |
getCacheMissMostRecentSample()
Get most recent value for cache miss |
long |
getCacheMissNotFoundMostRecentSample()
Get most recent value for cache miss as result of the element not found in cache |
java.lang.String |
getCacheName()
|
long |
getConfigDiskExpiryThreadIntervalSeconds()
Configuration property accessor |
int |
getConfigMaxElementsInMemory()
Configuration property accessor |
int |
getConfigMaxElementsOnDisk()
Configuration property accessor |
java.lang.String |
getConfigMemoryStoreEvictionPolicy()
Configuration property accessor |
long |
getConfigTimeToIdleSeconds()
Configuration property accessor |
long |
getConfigTimeToLiveSeconds()
Configuration property accessor |
long |
getEvictedCount()
Number of elements evicted from the cache |
long |
getExpiredCount()
Number of elements expired since creation or last clear |
long |
getInMemoryHitCount()
Number of times a requested item was found in the Memory Store. |
long |
getInMemorySize()
Number of elements in the MemoryStore |
long |
getOnDiskHitCount()
Number of times a requested item was found in the Disk Store. |
long |
getOnDiskSize()
Number of elements in the DiskStore |
long |
getPutCount()
Number of puts that has happened in the cache |
long |
getRemovedCount()
Number of elements removed since creation or last clear |
long |
getSize()
Size of the cache based on current accuracy settings. |
int |
getStatisticsAccuracy()
Accurately measuring statistics can be expensive. |
java.lang.String |
getStatisticsAccuracyDescription()
Accurately measuring statistics can be expensive. |
java.lang.String |
getStatus()
Gets the status attribute of the Cache. |
long |
getUpdateCount()
Number of updates that as happened in the cache |
boolean |
isConfigDiskPersistent()
Configuration property accessor |
boolean |
isConfigEternal()
Configuration property accessor |
boolean |
isConfigOverflowToDisk()
Configuration property accessor |
boolean |
isSampledStatisticsEnabled()
Returns true if statistics collection is enabled for cache, otherwise false |
boolean |
isStatisticsEnabled()
Returns true if statistics is enabled |
boolean |
isTerracottaClustered()
Is the cache configured with Terracotta clustering? |
void |
removeAll()
Removes all cached items. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampledCache(Ehcache cache)
Ehcache
cache
- Method Detail |
---|
public void flush()
flush
in interface SampledCacheMBean
public java.lang.String getCacheName()
getCacheName
in interface LiveCacheStatistics
public java.lang.String getStatus()
getStatus
in interface SampledCacheMBean
public void removeAll()
removeAll
in interface SampledCacheMBean
public long getAverageGetTimeMostRecentSample()
getAverageGetTimeMostRecentSample
in interface SampledCacheStatistics
public long getCacheElementEvictedMostRecentSample()
getCacheElementEvictedMostRecentSample
in interface SampledCacheStatistics
public long getCacheElementExpiredMostRecentSample()
getCacheElementExpiredMostRecentSample
in interface SampledCacheStatistics
public long getCacheElementPutMostRecentSample()
getCacheElementPutMostRecentSample
in interface SampledCacheStatistics
public long getCacheElementRemovedMostRecentSample()
getCacheElementRemovedMostRecentSample
in interface SampledCacheStatistics
public long getCacheElementUpdatedMostRecentSample()
getCacheElementUpdatedMostRecentSample
in interface SampledCacheStatistics
public long getCacheHitInMemoryMostRecentSample()
getCacheHitInMemoryMostRecentSample
in interface SampledCacheStatistics
public long getCacheHitMostRecentSample()
getCacheHitMostRecentSample
in interface SampledCacheStatistics
public long getCacheHitOnDiskMostRecentSample()
getCacheHitOnDiskMostRecentSample
in interface SampledCacheStatistics
public long getCacheMissExpiredMostRecentSample()
getCacheMissExpiredMostRecentSample
in interface SampledCacheStatistics
public long getCacheMissMostRecentSample()
getCacheMissMostRecentSample
in interface SampledCacheStatistics
public long getCacheMissNotFoundMostRecentSample()
getCacheMissNotFoundMostRecentSample
in interface SampledCacheStatistics
public int getStatisticsAccuracy()
getStatisticsAccuracy
in interface LiveCacheStatistics
getStatisticsAccuracy
in interface SampledCacheStatistics
public java.lang.String getStatisticsAccuracyDescription()
getStatisticsAccuracyDescription
in interface LiveCacheStatistics
getStatisticsAccuracyDescription
in interface SampledCacheStatistics
public void clearStatistics()
clearStatistics
in interface SampledCacheMBean
public boolean isStatisticsEnabled()
isStatisticsEnabled
in interface LiveCacheStatistics
public boolean isSampledStatisticsEnabled()
isSampledStatisticsEnabled
in interface SampledCacheStatistics
public boolean isTerracottaClustered()
isTerracottaClustered
in interface SampledCacheMBean
public void enableStatistics()
enableStatistics
in interface SampledCacheMBean
SampledCacheMBean.enableStatistics()
public void disableStatistics()
disableStatistics
in interface SampledCacheMBean
SampledCacheMBean.disableStatistics()
public void enableSampledStatistics()
enableSampledStatistics
in interface SampledCacheMBean
SampledCacheMBean.enableSampledStatistics()
public void disableSampledStatistics()
disableSampledStatistics
in interface SampledCacheMBean
()
public float getAverageGetTimeMillis()
getAverageGetTimeMillis
in interface LiveCacheStatistics
LiveCacheStatistics.getAverageGetTimeMillis()
public long getCacheHitCount()
getCacheHitCount
in interface LiveCacheStatistics
LiveCacheStatistics.getCacheHitCount()
public long getCacheMissCount()
getCacheMissCount
in interface LiveCacheStatistics
LiveCacheStatistics.getCacheMissCount()
public long getCacheMissCountExpired()
getCacheMissCountExpired
in interface LiveCacheStatistics
LiveCacheStatistics.getCacheMissCountExpired()
public long getConfigDiskExpiryThreadIntervalSeconds()
getConfigDiskExpiryThreadIntervalSeconds
in interface SampledCacheMBean
SampledCacheMBean.getConfigDiskExpiryThreadIntervalSeconds()
public int getConfigMaxElementsInMemory()
getConfigMaxElementsInMemory
in interface SampledCacheMBean
SampledCacheMBean.getConfigMaxElementsInMemory()
public int getConfigMaxElementsOnDisk()
getConfigMaxElementsOnDisk
in interface SampledCacheMBean
SampledCacheMBean.getConfigMaxElementsOnDisk()
public java.lang.String getConfigMemoryStoreEvictionPolicy()
getConfigMemoryStoreEvictionPolicy
in interface SampledCacheMBean
SampledCacheMBean.getConfigMemoryStoreEvictionPolicy()
public long getConfigTimeToIdleSeconds()
getConfigTimeToIdleSeconds
in interface SampledCacheMBean
SampledCacheMBean.getConfigTimeToIdleSeconds()
public long getConfigTimeToLiveSeconds()
getConfigTimeToLiveSeconds
in interface SampledCacheMBean
SampledCacheMBean.getConfigTimeToLiveSeconds()
public long getEvictedCount()
getEvictedCount
in interface LiveCacheStatistics
LiveCacheStatistics.getEvictedCount()
public long getExpiredCount()
getExpiredCount
in interface LiveCacheStatistics
LiveCacheStatistics.getExpiredCount()
public long getInMemoryHitCount()
getInMemoryHitCount
in interface LiveCacheStatistics
LiveCacheStatistics.getInMemoryHitCount()
public long getInMemorySize()
getInMemorySize
in interface LiveCacheStatistics
LiveCacheStatistics.getInMemorySize()
public long getOnDiskHitCount()
getOnDiskHitCount
in interface LiveCacheStatistics
LiveCacheStatistics.getOnDiskHitCount()
public long getOnDiskSize()
getOnDiskSize
in interface LiveCacheStatistics
LiveCacheStatistics.getOnDiskSize()
public long getPutCount()
getPutCount
in interface LiveCacheStatistics
LiveCacheStatistics.getPutCount()
public long getRemovedCount()
getRemovedCount
in interface LiveCacheStatistics
LiveCacheStatistics.getRemovedCount()
public long getSize()
getSize
in interface LiveCacheStatistics
LiveCacheStatistics.getSize()
public long getUpdateCount()
getUpdateCount
in interface LiveCacheStatistics
LiveCacheStatistics.getUpdateCount()
public boolean isConfigDiskPersistent()
isConfigDiskPersistent
in interface SampledCacheMBean
SampledCacheMBean.isConfigDiskPersistent()
public boolean isConfigEternal()
isConfigEternal
in interface SampledCacheMBean
SampledCacheMBean.isConfigEternal()
public boolean isConfigOverflowToDisk()
isConfigOverflowToDisk
in interface SampledCacheMBean
SampledCacheMBean.isConfigOverflowToDisk()
public void dispose()
dispose
in interface SampledCacheStatistics
SampledCacheStatistics.dispose()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |