public class RICacheStatisticsMXBean extends Object implements javax.cache.management.CacheStatisticsMXBean, Serializable
CacheStatisticsMXBean.| Constructor and Description |
|---|
RICacheStatisticsMXBean(javax.cache.Cache<?,?> cache)
Constructs a cache statistics object
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGetTimeNano(long duration)
Increments the get time accumulator
|
void |
addPutTimeNano(long duration)
Increments the put time accumulator
|
void |
addRemoveTimeNano(long duration)
Increments the remove time accumulator
|
void |
clear() |
float |
getAverageGetTime()
The mean time to execute gets.
|
float |
getAveragePutTime()
The mean time to execute puts.
|
float |
getAverageRemoveTime()
The mean time to execute removes.
|
long |
getCacheEvictions() |
long |
getCacheGets()
The total number of requests to the cache.
|
float |
getCacheHitPercentage()
Returns cache hits as a percentage of total gets.
|
long |
getCacheHits() |
long |
getCacheMisses() |
float |
getCacheMissPercentage()
Returns cache misses as a percentage of total gets.
|
long |
getCachePuts()
The total number of puts to the cache.
|
long |
getCacheRemovals()
The total number of removals from the cache.
|
long |
getEntryCount() |
void |
increaseCacheEvictions(long number)
Increases the counter by the number specified.
|
void |
increaseCacheExpiries(long number)
Increases the counter by the number specified.
|
void |
increaseCacheHits(long number)
Increases the counter by the number specified.
|
void |
increaseCacheMisses(long number)
Increases the counter by the number specified.
|
void |
increaseCachePuts(long number)
Increases the counter by the number specified.
|
void |
increaseCacheRemovals(long number)
Increases the counter by the number specified.
|
public RICacheStatisticsMXBean(javax.cache.Cache<?,?> cache)
cache - the associated cachepublic void clear()
Statistics will also automatically be cleared if internal counters overflow.
clear in interface javax.cache.management.CacheStatisticsMXBeanpublic long getEntryCount()
public long getCacheHits()
getCacheHits in interface javax.cache.management.CacheStatisticsMXBeanpublic float getCacheHitPercentage()
getCacheHitPercentage in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheMisses()
getCacheMisses in interface javax.cache.management.CacheStatisticsMXBeanpublic float getCacheMissPercentage()
getCacheMissPercentage in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheGets()
A "get" is an operation that returns the current or previous value.
getCacheGets in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCachePuts()
A put is counted even if it is immediately evicted. A replace includes a put and remove.
getCachePuts in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheRemovals()
A replace invcludes a put and remove.
getCacheRemovals in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheEvictions()
getCacheEvictions in interface javax.cache.management.CacheStatisticsMXBeanpublic float getAverageGetTime()
getAverageGetTime in interface javax.cache.management.CacheStatisticsMXBeanpublic float getAveragePutTime()
getAveragePutTime in interface javax.cache.management.CacheStatisticsMXBeanpublic float getAverageRemoveTime()
getAverageRemoveTime in interface javax.cache.management.CacheStatisticsMXBeanpublic void increaseCacheRemovals(long number)
number - the number to increase the counter bypublic void increaseCacheExpiries(long number)
number - the number to increase the counter bypublic void increaseCachePuts(long number)
number - the number to increase the counter bypublic void increaseCacheHits(long number)
number - the number to increase the counter bypublic void increaseCacheMisses(long number)
number - the number to increase the counter bypublic void increaseCacheEvictions(long number)
number - the number to increase the counter bypublic void addGetTimeNano(long duration)
duration - the time taken in nanosecondspublic void addPutTimeNano(long duration)
duration - the time taken in nanosecondspublic void addRemoveTimeNano(long duration)
duration - the time taken in nanosecondsCopyright © 2019. All rights reserved.