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.
|
toStringpublic PartitionedJCacheStatistics()
PartitionedJCacheStatisticspublic PartitionedJCacheStatistics(PartitionedCache cache)
PartitionedJCacheStatistics for a distributed cache.cache - a partitioned cache
public void registerHits(int count,
long lStartMillis)
JCacheStatisticscount - 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)
JCacheStatisticscount - number of cache entry lookup misseslStartMillis - start time of cache entry lookup that resulted in misses
public void registerPuts(long count,
long lStartMillis)
JCacheStatisticscount - number of cache entry putslStartMillis - start time in milliseconds of put(s) operationpublic void registerPutsCompleted(long lStartMillis)
JCacheStatisticslStartMillis - start time in milliseconds of put(s) operation
public void registerRemoves(long count,
long lStartMillis)
JCacheStatisticscount - number of cache entry removalslStartMillis - start time in milliseconds of removal(s) operationpublic void registerRemove()
JCacheStatisticspublic void registerHitsCompleted(long lStartMillis)
JCacheStatisticslStartMillis - start time in milliseconds of operation that resulted in a hit(s)public void registerMissesCompleted(long lStartMillis)
JCacheStatisticslStartMillis - start time in milliseconds of operation that resulted in miss(es)public void registerRemoveCompleted(long lStartMillis)
JCacheStatisticslStartMillis - start time in milliseconds of operation that resulted in removal(s)public JCacheIdentifier getIdentifier()
JCacheStatisticspublic JCacheStatistics add(JCacheStatistics stats)
JCacheStatisticsJCacheStatistics stats to this instance.stats - from another data-enabled serverpublic long getCacheHitsMillis()
JCacheStatisticspublic long getCacheMissesMillis()
JCacheStatisticspublic long getCachePutsMillis()
JCacheStatisticspublic long getCacheRemoveMillis()
JCacheStatisticspublic 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