|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
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 fromStatistics
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 milliseconds taken to get an element from the cache. |
long |
getAverageGetTimeNanos()
Average time in nanoseconds taken to get an element from the cache. |
long |
getCacheHitCount()
The number of times a requested item was found in the cache. |
int |
getCacheHitRatio()
The ratio of hits to accesses (hits + misses). |
long |
getCacheMissCount()
Number of times a requested element was not found in the cache. |
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()
Deprecated. use getLocalHeapSize() |
long |
getLocalDiskSize()
Number of entries in the DiskStore |
long |
getLocalDiskSizeInBytes()
Number of of bytes used by entries in the DiskStore |
long |
getLocalHeapSize()
Number of entries in the MemoryStore |
long |
getLocalHeapSizeInBytes()
Number of of bytes used by entries in the MemoryStore |
long |
getLocalOffHeapSize()
Number of entries in the off-heap store |
long |
getLocalOffHeapSizeInBytes()
Number of of bytes used by entries in the off-heap store |
long |
getMaxGetTimeMillis()
Deprecated. |
long |
getMaxGetTimeNanos()
Return maximum time taken for a get operation in the cache in milliseconds |
long |
getMinGetTimeMillis()
Deprecated. |
long |
getMinGetTimeNanos()
Return minimum time taken for a get operation in the cache in nanoseconds |
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()
Deprecated. use getLocalOffHeapSize() |
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()
Deprecated. use getLocalDiskSize() |
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 |
getXaRecoveredCount()
Return the Cache's XAResource recovered XIDs 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()
int getCacheHitRatio()
long getSize()
@Deprecated long getInMemorySize()
getLocalHeapSize()
@Deprecated long getOffHeapSize()
getLocalOffHeapSize()
@Deprecated long getOnDiskSize()
getLocalDiskSize()
long getLocalHeapSize()
long getLocalOffHeapSize()
long getLocalDiskSize()
long getLocalHeapSizeInBytes()
long getLocalOffHeapSizeInBytes()
long getLocalDiskSizeInBytes()
float getAverageGetTimeMillis()
long getAverageGetTimeNanos()
long getEvictedCount()
long getPutCount()
long getUpdateCount()
long getExpiredCount()
long getRemovedCount()
int getStatisticsAccuracy()
String getStatisticsAccuracyDescription()
String getCacheName()
void clearStatistics()
@Deprecated long getMinGetTimeMillis()
@Deprecated long getMaxGetTimeMillis()
long getMaxGetTimeNanos()
long getMinGetTimeNanos()
long getWriterQueueLength()
long getXaCommitCount()
long getXaRollbackCount()
long getXaRecoveredCount()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |