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 classPartitionedJCacheStatistics.CacheStatisticsExtractorGet CacheStatistics from binEntry's context for JCache id.static classPartitionedJCacheStatistics.PartitionedCacheStatisticsAggregatorCollect JCache CacheStatistics from all storage-enabled members.static classPartitionedJCacheStatistics.PartitionedCacheStatisticsClearClear JCache CacheStatistics from all storage-enabled members.
-
Constructor Summary
Constructors Constructor Description PartitionedJCacheStatistics()ConstructsPartitionedJCacheStatisticsPartitionedJCacheStatistics(PartitionedCache cache)Construct aPartitionedJCacheStatisticsfor a distributed cache.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JCacheStatisticsadd(JCacheStatistics stats)addJCacheStatisticsstats to this instance.voidclear()floatgetAverageGetTime()floatgetAveragePutTime()floatgetAverageRemoveTime()longgetCacheEvictions()longgetCacheGets()floatgetCacheHitPercentage()longgetCacheHits()longgetCacheHitsMillis()get time elapsed in milliseconds performing operations resulting in a hitlonggetCacheMisses()longgetCacheMissesMillis()get time elapsed in milliseconds performing operations resulting in a missfloatgetCacheMissPercentage()longgetCachePuts()longgetCachePutsMillis()get time elapsed in milliseconds performing operations resulting in a putlonggetCacheRemovals()longgetCacheRemoveMillis()get time elapsed in milliseconds performing operations resulting in a removeJCacheIdentifiergetIdentifier()Get unique JCacheIdentifier for cache that these statistics are for.longgetRefreshFrequency()voidregisterHits(int count, long lStartMillis)add Cache Hits of count and compute time in cache hitsvoidregisterHitsCompleted(long lStartMillis)Record elapsed time in milliseconds performing hit(s)voidregisterMisses(int count, long lStartMillis)add Cache Misses of count and compute time in cache missesvoidregisterMissesCompleted(long lStartMillis)Record elapsed time in milliseconds performing miss(es)voidregisterPuts(long count, long lStartMillis)add Cache Puts of count and compute time in cache putsvoidregisterPutsCompleted(long lStartMillis)Record elapsed time performing putsvoidregisterRemove()register a Cache RemovevoidregisterRemoveCompleted(long lStartMillis)Record elapsed time in milliseconds performing removal(s)voidregisterRemoves(long count, long lStartMillis)add Cache Removals of count and compute time in cache removalsvoidsetRefreshFrequency(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 aPartitionedJCacheStatisticsfor a distributed cache.- Parameters:
cache- a partitioned cache
-
-
Method Detail
-
registerHits
public void registerHits(int count, long lStartMillis)Description copied from interface:JCacheStatisticsadd 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:JCacheStatisticsadd 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:JCacheStatisticsadd 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:JCacheStatisticsRecord 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:JCacheStatisticsadd 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:JCacheStatisticsregister a Cache Remove
-
registerHitsCompleted
public void registerHitsCompleted(long lStartMillis)
Description copied from interface:JCacheStatisticsRecord 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:JCacheStatisticsRecord 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:JCacheStatisticsRecord 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:JCacheStatisticsGet unique JCacheIdentifier for cache that these statistics are for.- Returns:
- unique JCacheIdentifier
-
add
public JCacheStatistics add(JCacheStatistics stats)
Description copied from interface:JCacheStatisticsaddJCacheStatisticsstats to this instance.- Parameters:
stats-JCacheStatisticsfrom another data-enabled server- Returns:
- the addition of stats to this instance
-
getCacheHitsMillis
public long getCacheHitsMillis()
Description copied from interface:JCacheStatisticsget 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:JCacheStatisticsget 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:JCacheStatisticsget 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:JCacheStatisticsget 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
-
-