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
compute cache statistics across all storage-enabled data members.
- Since:
- Coherence 12.1.3
- Author:
- jf 2014.1.21
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Get CacheStatistics from binEntry's context for JCache id.static class
Collect JCache CacheStatistics from all storage-enabled members.static class
Clear JCache CacheStatistics from all storage-enabled members. -
Constructor Summary
ConstructorDescriptionConstructsPartitionedJCacheStatistics
Construct aPartitionedJCacheStatistics
for a distributed cache. -
Method Summary
Modifier and TypeMethodDescriptionadd
(JCacheStatistics stats) addJCacheStatistics
stats to this instance.void
clear()
float
float
float
long
long
float
long
long
get time elapsed in milliseconds performing operations resulting in a hitlong
long
get time elapsed in milliseconds performing operations resulting in a missfloat
long
long
get time elapsed in milliseconds performing operations resulting in a putlong
long
get time elapsed in milliseconds performing operations resulting in a removeGet unique JCacheIdentifier for cache that these statistics are for.long
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
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 Details
-
PartitionedJCacheStatistics
public PartitionedJCacheStatistics()ConstructsPartitionedJCacheStatistics
-
PartitionedJCacheStatistics
Construct aPartitionedJCacheStatistics
for a distributed cache.- Parameters:
cache
- a partitioned cache
-
-
Method Details
-
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
Description copied from interface:JCacheStatistics
Get unique JCacheIdentifier for cache that these statistics are for.- Returns:
- unique JCacheIdentifier
-
add
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
-