|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@MXBean public interface CacheStatistics
A management bean for cache statistics.
Statistics are accumulated from the time a cache is created. They can be reset to zero usingclearStatistics()
.
There are no defined consistency semantics for statistics. Refer to the implementation for precise semantics.
Each cache's statistics object must be registered with an ObjectName that is unique and has the following:
Type:
javax.cache:type=CacheStatistics
Required Attributes:
Method Summary | |
---|---|
void |
clearStatistics()
Clears the statistics counters to 0 for the associated Cache. |
float |
getAverageGetMillis()
The mean time to execute gets. |
float |
getAveragePutMillis()
The mean time to execute puts. |
float |
getAverageRemoveMillis()
The mean time to execute removes. |
long |
getCacheEvictions()
The total number of evictions from the cache. |
long |
getCacheGets()
The total number of requests to the cache. |
float |
getCacheHitPercentage()
This is a measure of cache efficiency. |
long |
getCacheHits()
The number of get requests that were satisfied by the cache. |
long |
getCacheMisses()
A miss is a get request which is not satisfied. |
float |
getCacheMissPercentage()
Returns the percentage of cache accesses that did not find a requested entry in the cache. |
long |
getCachePuts()
The total number of puts to the cache. |
long |
getCacheRemovals()
The total number of removals from the cache. |
String |
getName()
|
Status |
getStatus()
Gets the Status attribute of the Cache. |
Date |
statsAccumulatingFrom()
The date from which statistics have been accumulated. |
Method Detail |
---|
String getName()
Status getStatus()
Status
attribute of the Cache.
void clearStatistics()
Date statsAccumulatingFrom()
long getCacheHits()
float getCacheHitPercentage()
getCacheHits()
divided by getCacheGets()
* 100.
long getCacheMisses()
float getCacheMissPercentage()
getCacheMisses()
divided by getCacheGets()
* 100.
long getCacheGets()
long getCachePuts()
long getCacheRemovals()
long getCacheEvictions()
float getAverageGetMillis()
float getAveragePutMillis()
float getAverageRemoveMillis()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |