|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LiveCacheStatistics
Interface for usage statistics of a Cache.
Implementations of this interface is different from Statistics
in the way that values returned from this interface
implementations will reflect the current state of the cache and not a snapshot of the cache when the api's were called (which is the
behavior of Statistics
)
Method Summary | |
---|---|
void |
clearStatistics()
Clears statistics of this cache |
float |
getAverageGetTimeMillis()
Average time in milli seconds taken to get an element from the cache. |
long |
getCacheHitCount()
The number of times a requested item was found in the cache. |
long |
getCacheMissCount()
|
long |
getCacheMissCountExpired()
|
String |
getCacheName()
|
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 |
getInMemoryMissCount()
Number of times a requested item was not found in the Memory Store. |
long |
getInMemorySize()
Number of elements in the MemoryStore |
long |
getMaxGetTimeMillis()
Return maximum time taken for a get operation in the cache in milliseconds |
long |
getMinGetTimeMillis()
Return minimum time taken for a get operation in the cache in milliseconds |
long |
getOffHeapHitCount()
Number of times a requested item was found in the off-heap store. |
long |
getOffHeapMissCount()
Number of times a requested item was not found in the off-heap store. |
long |
getOffHeapSize()
Number of elements in the off-heap store |
long |
getOnDiskHitCount()
Number of times a requested item was found in the Disk Store. |
long |
getOnDiskMissCount()
Number of times a requested item was not 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. |
String |
getStatisticsAccuracyDescription()
Accurately measuring statistics can be expensive. |
long |
getUpdateCount()
Number of updates that as happened in the cache |
long |
getWriterQueueLength()
Gets the size of the write-behind queue, if any. |
long |
getXaCommitCount()
Return the Cache's XAResource commit calls count |
long |
getXaRollbackCount()
Return the Cache's XAResource rollback calls count |
boolean |
isStatisticsEnabled()
Returns true if statistics is enabled |
Method Detail |
---|
boolean isStatisticsEnabled()
long getCacheHitCount()
long getInMemoryHitCount()
long getOffHeapHitCount()
long getOnDiskHitCount()
long getCacheMissCount()
long getInMemoryMissCount()
long getOffHeapMissCount()
long getOnDiskMissCount()
long getCacheMissCountExpired()
long getSize()
long getInMemorySize()
long getOffHeapSize()
long getOnDiskSize()
float getAverageGetTimeMillis()
long getEvictedCount()
long getPutCount()
long getUpdateCount()
long getExpiredCount()
long getRemovedCount()
int getStatisticsAccuracy()
String getStatisticsAccuracyDescription()
String getCacheName()
void clearStatistics()
long getMinGetTimeMillis()
long getMaxGetTimeMillis()
long getWriterQueueLength()
long getXaCommitCount()
long getXaRollbackCount()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |