|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheStatisticsMBean
Method Summary | |
---|---|
String |
getAssociatedCacheName()
|
double |
getCacheHitPercentage()
Returns the percentage of cache accesses that found a requested item in the cache. |
long |
getCacheHits()
The number of times a requested item was found in the cache. |
long |
getCacheMisses()
|
double |
getCacheMissPercentage()
Returns the percentage of cache accesses that did not find a requested element in the cache. |
long |
getDiskStoreObjectCount()
Gets the number of objects in the DiskStore |
double |
getInMemoryHitPercentage()
Returns the percentage of cache accesses that found a requested item cached in-memory. |
long |
getInMemoryHits()
Number of times a requested item was found in the Memory Store. |
long |
getInMemoryMisses()
|
long |
getMemoryStoreObjectCount()
Gets the number of objects in the MemoryStore |
long |
getObjectCount()
Gets the number of elements stored in the cache. |
double |
getOffHeapHitPercentage()
Returns the percentage of cache accesses that found a requested item cached off-heap. |
long |
getOffHeapHits()
Number of times a requested item was found in the off-heap store. |
long |
getOffHeapMisses()
|
long |
getOffHeapStoreObjectCount()
Gets the number of objects in the OffHeapStore |
double |
getOnDiskHitPercentage()
Returns the percentage of cache accesses that found a requested item cached on disk. |
long |
getOnDiskHits()
Number of times a requested item was found in the Disk Store. |
long |
getOnDiskMisses()
|
int |
getWriterMaxQueueSize()
Gets the maximum size of the write-behind queue, if any. |
long |
getWriterQueueLength()
Gets the size of the write-behind queue, if any. |
Method Detail |
---|
long getCacheHits()
long getInMemoryHits()
long getOffHeapHits()
long getOnDiskHits()
long getCacheMisses()
long getInMemoryMisses()
long getOffHeapMisses()
long getOnDiskMisses()
long getObjectCount()
Statistics
.
The size is the number of Element
s in the MemoryStore
plus
the number of Element
s in the DiskStore
.
This number is the actual number of elements, including expired elements that have
not been removed. Any duplicates between stores are accounted for.
Expired elements are removed from the the memory store when
getting an expired element, or when attempting to spool an expired element to
disk.
Expired elements are removed from the disk store when getting an expired element,
or when the expiry thread runs, which is once every five minutes.
Statistics
.
This method accounts for elements which might be expired or duplicated between stores. It take approximately
200ms per 1000 elements to execute.
Statistics
.
The number given may contain expired elements. In addition if the DiskStore is used it may contain some double
counting of elements. It takes 6ms for 1000 elements to execute. Time to execute is O(log n). 50,000 elements take
36ms.
long getMemoryStoreObjectCount()
long getOffHeapStoreObjectCount()
long getDiskStoreObjectCount()
String getAssociatedCacheName()
double getCacheHitPercentage()
double getCacheMissPercentage()
double getInMemoryHitPercentage()
double getOffHeapHitPercentage()
double getOnDiskHitPercentage()
long getWriterQueueLength()
int getWriterMaxQueueSize()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |