@MBean(objectName="ClusterCacheStats",
description="General cluster statistics such as timings, hit/miss ratio, etc. for a cache.")
public class ClusterCacheStatsImpl
extends AbstractClusterStats
implements ClusterCacheStats
| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterCacheStatsImpl.DistributedCacheStatsCallableExternalizer |
DEFAULT_STALE_STATS_THRESHOLDOBJECT_NAMEgetStaleStatsThreshold, getStatisticsEnabled, getTimeSinceReset, isStatisticsEnabled, resetStatistics, setStaleStatsThreshold, setStatisticsEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTimeSinceReset, setStatisticsEnabledpublic void injectDependencies(Cache<?,?> cache, Configuration configuration)
public void start()
@ManagedAttribute(description="Cluster wide total average number of milliseconds for a read operation on the cache",
displayName="Cluster wide total average read time (ms)",
units=MILLISECONDS)
public long getAverageReadTime()
getAverageReadTime in interface Stats@ManagedAttribute(description="Cluster wide total average number of nanoseconds for a read operation on the cache",
displayName="Cluster wide total average read time (ns)",
units=NANOSECONDS)
public long getAverageReadTimeNanos()
getAverageReadTimeNanos in interface Stats@ManagedAttribute(description="Cluster wide total average number of milliseconds for a remove operation in the cache",
displayName="Cluster wide total average remove time (ms)",
units=MILLISECONDS)
public long getAverageRemoveTime()
getAverageRemoveTime in interface Stats@ManagedAttribute(description="Cluster wide total average number of nanoseconds for a remove operation in the cache",
displayName="Cluster wide total average remove time (ns)",
units=NANOSECONDS)
public long getAverageRemoveTimeNanos()
getAverageRemoveTimeNanos in interface Stats@ManagedAttribute(description="Cluster wide average number of milliseconds for a write operation in the cache",
displayName="Cluster wide average write time (ms)",
units=MILLISECONDS)
public long getAverageWriteTime()
getAverageWriteTime in interface Stats@ManagedAttribute(description="Cluster wide average number of nanoseconds for a write operation in the cache",
displayName="Cluster wide average write time (ns)",
units=NANOSECONDS)
public long getAverageWriteTimeNanos()
getAverageWriteTimeNanos in interface Stats@ManagedAttribute(description="Required minimum number of nodes to hold current cache data",
displayName="Required minimum number of nodes")
public int getRequiredMinimumNumberOfNodes()
getRequiredMinimumNumberOfNodes in interface Stats@ManagedAttribute(description="Cluster wide total number of cache eviction operations",
displayName="Cluster wide total number of cache evictions",
measurementType=TRENDSUP)
public long getEvictions()
getEvictions in interface Stats@ManagedAttribute(description="Cluster wide total number of cache attribute hits",
displayName="Cluster wide total number of cache hits",
measurementType=TRENDSUP)
public long getHits()
@ManagedAttribute(description="Cluster wide total percentage hit/(hit+miss) ratio for this cache",
displayName="Cluster wide total hit ratio",
units=PERCENTAGE)
public double getHitRatio()
getHitRatio in interface ClusterCacheStats@ManagedAttribute(description="Cluster wide total number of cache attribute misses",
displayName="Cluster wide total number of cache misses",
measurementType=TRENDSUP)
public long getMisses()
@ManagedAttribute(description="Cluster wide total number of entries currently in the cache, including passivated entries",
displayName="Cluster wide total number of current cache entries")
public int getNumberOfEntries()
@ManagedAttribute(description="Cluster wide total number of entries currently stored in-memory",
displayName="Cluster wide total number of in-memory cache entries")
public int getCurrentNumberOfEntriesInMemory()
StatsStats.getCurrentNumberOfEntries(), however passivated entries are not included.getCurrentNumberOfEntriesInMemory in interface Stats@ManagedAttribute(description="Cluster wide read/writes ratio for the cache",
displayName="Cluster wide read/write ratio",
units=PERCENTAGE)
public double getReadWriteRatio()
getReadWriteRatio in interface ClusterCacheStats@ManagedAttribute(description="Cluster wide total number of cache removal hits",
displayName="Cluster wide total number of cache removal hits",
measurementType=TRENDSUP)
public long getRemoveHits()
getRemoveHits in interface Stats@ManagedAttribute(description="Cluster wide total number of cache removals where keys were not found",
displayName="Cluster wide total number of cache removal misses",
measurementType=TRENDSUP)
public long getRemoveMisses()
getRemoveMisses in interface Stats@ManagedAttribute(description="Cluster wide total number of cache put operations",
displayName="Cluster wide total number of cache puts",
measurementType=TRENDSUP)
public long getStores()
@ManagedAttribute(description="Number of seconds since the first cache node started",
displayName="Number of seconds since the first cache node started",
measurementType=TRENDSUP)
public long getTimeSinceStart()
getTimeSinceStart in interface Statspublic int getCurrentNumberOfEntries()
StatsgetCurrentNumberOfEntries in interface Statspublic long getTotalNumberOfEntries()
StatsgetTotalNumberOfEntries in interface Stats@ManagedAttribute(description="Amount in bytes of memory used across the cluster for entries in this cache with eviction",
displayName="Cluster wide memory used by eviction")
public long getDataMemoryUsed()
StatsgetDataMemoryUsed in interface Stats@ManagedAttribute(description="Amount in bytes of off-heap memory used across the cluster for this cache",
displayName="Cluster wide off-heap memory used")
public long getOffHeapMemoryUsed()
StatsgetOffHeapMemoryUsed in interface Statspublic long getRetrievals()
getRetrievals in interface Statspublic void reset()
Statsreset in interface Statsreset in class AbstractClusterStats@ManagedAttribute(description="Total number of exclusive locks available in the cluster",
displayName="Cluster wide total number of locks")
public int getNumberOfLocksAvailable()
getNumberOfLocksAvailable in interface ClusterCacheStats@ManagedAttribute(description="Total number of locks held in the cluster",
displayName="Cluster wide total number of locks held")
public int getNumberOfLocksHeld()
getNumberOfLocksHeld in interface ClusterCacheStats@ManagedAttribute(description="The total number of invalidations in the cluster",
displayName="Cluster wide total number of invalidations",
measurementType=TRENDSUP)
public long getInvalidations()
getInvalidations in interface ClusterCacheStats@ManagedAttribute(description="The total number of activations in the cluster",
displayName="Cluster wide total number of activations",
measurementType=TRENDSUP)
public long getActivations()
getActivations in interface ClusterCacheStats@ManagedAttribute(description="The total number of passivations in the cluster",
displayName="Cluster wide total number of passivations",
measurementType=TRENDSUP)
public long getPassivations()
getPassivations in interface ClusterCacheStats@ManagedAttribute(description="The total number of cacheloader load operations in the cluster",
displayName="Cluster wide total number of cacheloader loads",
measurementType=TRENDSUP)
public long getCacheLoaderLoads()
getCacheLoaderLoads in interface ClusterCacheStats@ManagedAttribute(description="The total number of cacheloader load misses in the cluster",
displayName="Cluster wide total number of cacheloader misses",
measurementType=TRENDSUP)
public long getCacheLoaderMisses()
getCacheLoaderMisses in interface ClusterCacheStats@ManagedAttribute(description="The total number of cachestore store operations in the cluster",
displayName="Cluster wide total number of cachestore stores",
measurementType=TRENDSUP)
public long getStoreWrites()
getStoreWrites in interface ClusterCacheStatspublic long getStaleStatsThreshold()
public void setStaleStatsThreshold(long threshold)
threshold - the time in milliseconds, to wait between requests before re-retrieving cluster wide statsCopyright © 2021 JBoss by Red Hat. All rights reserved.