public class PartitionedJCacheStatistics extends AbstractJCacheStatistics
Modifier and Type | Class and Description |
---|---|
static class |
PartitionedJCacheStatistics.CacheStatisticsExtractor
Get CacheStatistics from binEntry's context for JCache id.
|
static class |
PartitionedJCacheStatistics.PartitionedCacheStatisticsAggregator
Collect JCache CacheStatistics from all storage-enabled members.
|
static class |
PartitionedJCacheStatistics.PartitionedCacheStatisticsClear
Clear JCache CacheStatistics from all storage-enabled members.
|
Constructor and Description |
---|
PartitionedJCacheStatistics()
Constructs
PartitionedJCacheStatistics |
PartitionedJCacheStatistics(PartitionedCache cache)
Construct a
PartitionedJCacheStatistics for a distributed cache. |
Modifier and Type | Method and Description |
---|---|
JCacheStatistics |
add(JCacheStatistics stats)
add
JCacheStatistics stats to this instance. |
void |
clear() |
float |
getAverageGetTime() |
float |
getAveragePutTime() |
float |
getAverageRemoveTime() |
long |
getCacheEvictions() |
long |
getCacheGets() |
float |
getCacheHitPercentage() |
long |
getCacheHits() |
long |
getCacheHitsMillis()
get time elapsed in milliseconds performing operations resulting in a hit
|
long |
getCacheMisses() |
long |
getCacheMissesMillis()
get time elapsed in milliseconds performing operations resulting in a miss
|
float |
getCacheMissPercentage() |
long |
getCachePuts() |
long |
getCachePutsMillis()
get time elapsed in milliseconds performing operations resulting in a put
|
long |
getCacheRemovals() |
long |
getCacheRemoveMillis()
get time elapsed in milliseconds performing operations resulting in a remove
|
JCacheIdentifier |
getIdentifier()
Get unique JCacheIdentifier for cache that these statistics are for.
|
long |
getRefreshFrequency() |
void |
registerHits(int count, long lStartMillis)
add Cache Hits of count and compute time in cache hits
|
void |
registerHitsCompleted(long lStartMillis)
Record elapsed time in milliseconds performing hit(s)
|
void |
registerMisses(int count, long lStartMillis)
add Cache Misses of count and compute time in cache misses
|
void |
registerMissesCompleted(long lStartMillis)
Record elapsed time in milliseconds performing miss(es)
|
void |
registerPuts(long count, long lStartMillis)
add Cache Puts of count and compute time in cache puts
|
void |
registerPutsCompleted(long lStartMillis)
Record elapsed time performing puts
|
void |
registerRemove()
register a Cache Remove
|
void |
registerRemoveCompleted(long lStartMillis)
Record elapsed time in milliseconds performing removal(s)
|
void |
registerRemoves(long count, long lStartMillis)
add Cache Removals of count and compute time in cache removals
|
void |
setRefreshFrequency(long m_ldtRefreshFrequency)
Set the max frequency to allow cache statistics refresh across all members.
|
toString
public PartitionedJCacheStatistics()
PartitionedJCacheStatistics
public PartitionedJCacheStatistics(PartitionedCache cache)
PartitionedJCacheStatistics
for a distributed cache.cache
- a partitioned cachepublic void registerHits(int count, long lStartMillis)
JCacheStatistics
count
- number of cache entry lookup hitslStartMillis
- start time in milliseconds for computing time performing lookup when there were hits.public void registerMisses(int count, long lStartMillis)
JCacheStatistics
count
- number of cache entry lookup misseslStartMillis
- start time of cache entry lookup that resulted in missespublic void registerPuts(long count, long lStartMillis)
JCacheStatistics
count
- number of cache entry putslStartMillis
- start time in milliseconds of put(s) operationpublic void registerPutsCompleted(long lStartMillis)
JCacheStatistics
lStartMillis
- start time in milliseconds of put(s) operationpublic void registerRemoves(long count, long lStartMillis)
JCacheStatistics
count
- number of cache entry removalslStartMillis
- start time in milliseconds of removal(s) operationpublic void registerRemove()
JCacheStatistics
public void registerHitsCompleted(long lStartMillis)
JCacheStatistics
lStartMillis
- start time in milliseconds of operation that resulted in a hit(s)public void registerMissesCompleted(long lStartMillis)
JCacheStatistics
lStartMillis
- start time in milliseconds of operation that resulted in miss(es)public void registerRemoveCompleted(long lStartMillis)
JCacheStatistics
lStartMillis
- start time in milliseconds of operation that resulted in removal(s)public JCacheIdentifier getIdentifier()
JCacheStatistics
public JCacheStatistics add(JCacheStatistics stats)
JCacheStatistics
JCacheStatistics
stats to this instance.stats
- from another data-enabled serverpublic long getCacheHitsMillis()
JCacheStatistics
public long getCacheMissesMillis()
JCacheStatistics
public long getCachePutsMillis()
JCacheStatistics
public long getCacheRemoveMillis()
JCacheStatistics
public void clear()
public long getCacheHits()
public float getCacheHitPercentage()
public long getCacheMisses()
public float getCacheMissPercentage()
public long getCacheGets()
public long getCachePuts()
public long getCacheRemovals()
public float getAverageGetTime()
public float getAveragePutTime()
public float getAverageRemoveTime()
public long getCacheEvictions()
public long getRefreshFrequency()
public void setRefreshFrequency(long m_ldtRefreshFrequency)
m_ldtRefreshFrequency
- the duration between statistics refresh