public interface CacheStatistics
add(String, TransactionStats)
method. The data is then aggregated
so that, for example, the hit ratio for a particular cache may be retrieved.Modifier and Type | Method and Description |
---|---|
void |
add(String cacheName,
TransactionStats stats)
Add new details to the system wide cache statistics.
|
Map<TransactionStats.OpType,OperationStats> |
allStats(String cacheName)
Retrieve a map containing a snapshot of all of the raw stats
(e.g.
|
long |
count(String cacheName,
TransactionStats.OpType opType)
Get the number of occurrences of the given operation type,
retrieve the number of cache hits that have happened to the cache.
|
double |
hitMissRatio(String cacheName)
The hit ratio for the given cache, where 1.0 is the maximum possible
value and 0.0 represents a cache that has never successfully
returned a previously cached value.
|
double |
meanTime(String cacheName,
TransactionStats.OpType opType)
The mean time in nanoseconds for all operations of the given type.
|
long |
numGets(String cacheName)
Retrieve the total number of get operations invoked on the
cache (i.e.
|
void add(String cacheName, TransactionStats stats)
long count(String cacheName, TransactionStats.OpType opType)
cacheName
- Name of the cache.opType
- Type of cache operation.double meanTime(String cacheName, TransactionStats.OpType opType)
cacheName
- The cache name.opType
- Type of operation, e.g. cache hits.double hitMissRatio(String cacheName)
cacheName
- The cache name.long numGets(String cacheName)
cacheName
- The cache name.Map<TransactionStats.OpType,OperationStats> allStats(String cacheName)
add(String, TransactionStats)
for example.cacheName
- The cache name.Copyright © 2005–2017 Alfresco Software. All rights reserved.