public class PartitionSplittingBackingMap.AggregatingCacheStatistics extends Object implements CacheStatistics
| Constructor and Description |
|---|
AggregatingCacheStatistics() |
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageGetMillis()
Determine the average number of milliseconds per get() invocation since the cache statistics were last reset.
|
double |
getAverageHitMillis()
Determine the average number of milliseconds per get() invocation that is a hit.
|
double |
getAverageMissMillis()
Determine the average number of milliseconds per get() invocation that is a miss.
|
double |
getAveragePutMillis()
Determine the average number of milliseconds per put() invocation since the cache statistics were last reset.
|
long |
getCacheHits()
Determine the rough number of cache hits since the cache statistics were last reset.
|
long |
getCacheHitsMillis()
Determine the total number of milliseconds (since that last statistics reset) for the get() operations for which an entry existed in this map.
|
long |
getCacheMisses()
Determine the rough number of cache misses since the cache statistics were last reset.
|
long |
getCacheMissesMillis()
Determine the total number of milliseconds (since that last statistics reset) for the get() operations for which no entry existed in this map.
|
long |
getCachePrunes()
Determine the rough number of cache pruning cycles since the cache statistics were last reset.
|
long |
getCachePrunesMillis()
Determine the total number of milliseconds (since that last statistics reset) spent on cache pruning.
|
double |
getHitProbability()
Determine the rough probability (0 <= p <= 1) that the next invocation will be a hit, based on the statistics collected since the last reset of the cache statistics.
|
long |
getTotalGets()
Determine the total number of get() operations since the cache statistics were last reset.
|
long |
getTotalGetsMillis()
Determine the total number of milliseconds spent on get() operations since the cache statistics were last reset.
|
long |
getTotalPuts()
Determine the total number of put() operations since the cache statistics were last reset.
|
long |
getTotalPutsMillis()
Determine the total number of milliseconds spent on put() operations since the cache statistics were last reset.
|
void |
resetHitStatistics()
Reset all of the cache statistics.
|
String |
toString()
For debugging purposes, format the statistics information into a human-readable format.
|
public long getTotalGets()
getTotalGets in interface CacheStatisticspublic long getTotalGetsMillis()
getTotalGetsMillis in interface CacheStatisticspublic double getAverageGetMillis()
getAverageGetMillis in interface CacheStatisticspublic long getTotalPuts()
getTotalPuts in interface CacheStatisticspublic long getTotalPutsMillis()
getTotalPutsMillis in interface CacheStatisticspublic double getAveragePutMillis()
getAveragePutMillis in interface CacheStatisticspublic long getCacheHits()
A cache hit is a read operation invocation (e.g. get()) for which an entry exists in this map.
getCacheHits in interface CacheStatisticspublic long getCacheHitsMillis()
getCacheHitsMillis in interface CacheStatisticspublic double getAverageHitMillis()
getAverageHitMillis in interface CacheStatisticspublic long getCacheMisses()
A cache miss is a get() invocation that does not have an entry in this map.
getCacheMisses in interface CacheStatisticspublic long getCacheMissesMillis()
getCacheMissesMillis in interface CacheStatisticspublic double getAverageMissMillis()
getAverageMissMillis in interface CacheStatisticspublic double getHitProbability()
getHitProbability in interface CacheStatisticspublic long getCachePrunes()
For the LocalCache implementation, this refers to the number of times that the prune() method is executed.
getCachePrunes in interface CacheStatisticspublic long getCachePrunesMillis()
For the LocalCache implementation, this refers to the time spent in the prune() method.
getCachePrunesMillis in interface CacheStatisticspublic void resetHitStatistics()
Note that the method name implies that only the hit statistics are cleared, which is not the case; all of the statistics are cleared.
resetHitStatistics in interface CacheStatistics