Class PartitionedJCacheStatistics
- java.lang.Object
-
- com.tangosol.coherence.jcache.common.AbstractJCacheStatistics
-
- com.tangosol.coherence.jcache.partitionedcache.PartitionedJCacheStatistics
-
- All Implemented Interfaces:
JCacheStatistics
,javax.cache.management.CacheStatisticsMXBean
public class PartitionedJCacheStatistics extends AbstractJCacheStatistics
compute cache statistics across all storage-enabled data members.- Since:
- Coherence 12.1.3
- Author:
- jf 2014.1.21
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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 Summary
Constructors Constructor Description PartitionedJCacheStatistics()
ConstructsPartitionedJCacheStatistics
PartitionedJCacheStatistics(PartitionedCache cache)
Construct aPartitionedJCacheStatistics
for a distributed cache.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JCacheStatistics
add(JCacheStatistics stats)
addJCacheStatistics
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 hitlong
getCacheMisses()
long
getCacheMissesMillis()
get time elapsed in milliseconds performing operations resulting in a missfloat
getCacheMissPercentage()
long
getCachePuts()
long
getCachePutsMillis()
get time elapsed in milliseconds performing operations resulting in a putlong
getCacheRemovals()
long
getCacheRemoveMillis()
get time elapsed in milliseconds performing operations resulting in a removeJCacheIdentifier
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 hitsvoid
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 missesvoid
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 putsvoid
registerPutsCompleted(long lStartMillis)
Record elapsed time performing putsvoid
registerRemove()
register a Cache Removevoid
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 removalsvoid
setRefreshFrequency(long m_ldtRefreshFrequency)
Set the max frequency to allow cache statistics refresh across all members.-
Methods inherited from class com.tangosol.coherence.jcache.common.AbstractJCacheStatistics
toString
-
-
-
-
Constructor Detail
-
PartitionedJCacheStatistics
public PartitionedJCacheStatistics()
ConstructsPartitionedJCacheStatistics
-
PartitionedJCacheStatistics
public PartitionedJCacheStatistics(PartitionedCache cache)
Construct aPartitionedJCacheStatistics
for a distributed cache.- Parameters:
cache
- a partitioned cache
-
-
Method Detail
-
registerHits
public void registerHits(int count, long lStartMillis)
Description copied from interface:JCacheStatistics
add Cache Hits of count and compute time in cache hits- Parameters:
count
- number of cache entry lookup hitslStartMillis
- start time in milliseconds for computing time performing lookup when there were hits.
-
registerMisses
public void registerMisses(int count, long lStartMillis)
Description copied from interface:JCacheStatistics
add Cache Misses of count and compute time in cache misses- Parameters:
count
- number of cache entry lookup misseslStartMillis
- start time of cache entry lookup that resulted in misses
-
registerPuts
public void registerPuts(long count, long lStartMillis)
Description copied from interface:JCacheStatistics
add Cache Puts of count and compute time in cache puts- Parameters:
count
- number of cache entry putslStartMillis
- start time in milliseconds of put(s) operation
-
registerPutsCompleted
public void registerPutsCompleted(long lStartMillis)
Description copied from interface:JCacheStatistics
Record elapsed time performing puts- Parameters:
lStartMillis
- start time in milliseconds of put(s) operation
-
registerRemoves
public void registerRemoves(long count, long lStartMillis)
Description copied from interface:JCacheStatistics
add Cache Removals of count and compute time in cache removals- Parameters:
count
- number of cache entry removalslStartMillis
- start time in milliseconds of removal(s) operation
-
registerRemove
public void registerRemove()
Description copied from interface:JCacheStatistics
register a Cache Remove
-
registerHitsCompleted
public void registerHitsCompleted(long lStartMillis)
Description copied from interface:JCacheStatistics
Record elapsed time in milliseconds performing hit(s)- Parameters:
lStartMillis
- start time in milliseconds of operation that resulted in a hit(s)
-
registerMissesCompleted
public void registerMissesCompleted(long lStartMillis)
Description copied from interface:JCacheStatistics
Record elapsed time in milliseconds performing miss(es)- Parameters:
lStartMillis
- start time in milliseconds of operation that resulted in miss(es)
-
registerRemoveCompleted
public void registerRemoveCompleted(long lStartMillis)
Description copied from interface:JCacheStatistics
Record elapsed time in milliseconds performing removal(s)- Parameters:
lStartMillis
- start time in milliseconds of operation that resulted in removal(s)
-
getIdentifier
public JCacheIdentifier getIdentifier()
Description copied from interface:JCacheStatistics
Get unique JCacheIdentifier for cache that these statistics are for.- Returns:
- unique JCacheIdentifier
-
add
public JCacheStatistics add(JCacheStatistics stats)
Description copied from interface:JCacheStatistics
addJCacheStatistics
stats to this instance.- Parameters:
stats
-JCacheStatistics
from another data-enabled server- Returns:
- the addition of stats to this instance
-
getCacheHitsMillis
public long getCacheHitsMillis()
Description copied from interface:JCacheStatistics
get time elapsed in milliseconds performing operations resulting in a hit- Returns:
- duration of operations that resulted in cache entry hit
-
getCacheMissesMillis
public long getCacheMissesMillis()
Description copied from interface:JCacheStatistics
get time elapsed in milliseconds performing operations resulting in a miss- Returns:
- duration of operations that resulted in cache entry miss
-
getCachePutsMillis
public long getCachePutsMillis()
Description copied from interface:JCacheStatistics
get time elapsed in milliseconds performing operations resulting in a put- Returns:
- duration of operations that resulted in cache entry put
-
getCacheRemoveMillis
public long getCacheRemoveMillis()
Description copied from interface:JCacheStatistics
get time elapsed in milliseconds performing operations resulting in a remove- Returns:
- duration of operations that resulted in cache entry remove
-
clear
public void clear()
-
getCacheHits
public long getCacheHits()
-
getCacheHitPercentage
public float getCacheHitPercentage()
-
getCacheMisses
public long getCacheMisses()
-
getCacheMissPercentage
public float getCacheMissPercentage()
-
getCacheGets
public long getCacheGets()
-
getCachePuts
public long getCachePuts()
-
getCacheRemovals
public long getCacheRemovals()
-
getAverageGetTime
public float getAverageGetTime()
-
getAveragePutTime
public float getAveragePutTime()
-
getAverageRemoveTime
public float getAverageRemoveTime()
-
getCacheEvictions
public long getCacheEvictions()
-
getRefreshFrequency
public long getRefreshFrequency()
- Returns:
- the duration between statistics refresh
-
setRefreshFrequency
public void setRefreshFrequency(long m_ldtRefreshFrequency)
Set the max frequency to allow cache statistics refresh across all members.- Parameters:
m_ldtRefreshFrequency
- the duration between statistics refresh
-
-