Stats or ClusterCacheStats instead.@MBean(objectName="CacheContainerStats",
description="General cache container statistics such as timings, hit/miss ratio, etc. for a single node.")
@Deprecated
public class CacheContainerStatsImpl
extends Object
implements CacheContainerStats, JmxStatisticsExposer
OBJECT_NAME| Constructor and Description |
|---|
CacheContainerStatsImpl(EmbeddedCacheManager cm)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getAverageReadTime()
Deprecated.
|
long |
getAverageReadTimeNanos()
Deprecated.
|
long |
getAverageRemoveTime()
Deprecated.
|
long |
getAverageRemoveTimeNanos()
Deprecated.
|
long |
getAverageWriteTime()
Deprecated.
|
long |
getAverageWriteTimeNanos()
Deprecated.
|
int |
getCurrentNumberOfEntries()
Deprecated.
Returns the number of entries currently in this cache instance.
|
int |
getCurrentNumberOfEntriesInMemory()
Deprecated.
The same as
Stats.getCurrentNumberOfEntries(), however passivated entries are not included. |
long |
getDataMemoryUsed()
Deprecated.
Provides how much memory the current eviction algorithm estimates is in use for data.
|
long |
getEvictions()
Deprecated.
|
double |
getHitRatio()
Deprecated.
|
long |
getHits()
Deprecated.
|
long |
getMisses()
Deprecated.
|
int |
getNumberOfEntries()
Deprecated.
|
long |
getOffHeapMemoryUsed()
Deprecated.
The amount of off-heap memory used by this cache
|
double |
getReadWriteRatio()
Deprecated.
|
long |
getRemoveHits()
Deprecated.
|
long |
getRemoveMisses()
Deprecated.
|
int |
getRequiredMinimumNumberOfNodes()
Deprecated.
|
long |
getRetrievals()
Deprecated.
|
boolean |
getStatisticsEnabled()
Deprecated.
Returns whether an interceptor's statistics are being captured.
|
long |
getStores()
Deprecated.
|
long |
getTimeSinceReset()
Deprecated.
|
long |
getTimeSinceStart()
Deprecated.
|
long |
getTotalNumberOfEntries()
Deprecated.
Number of entries stored in cache since the cache started running.
|
boolean |
isStatisticsEnabled()
Deprecated.
|
void |
reset()
Deprecated.
Reset statistics
|
void |
resetStatistics()
Deprecated.
Resets an interceptor's cache statistics
|
void |
setStatisticsEnabled(boolean enabled)
Deprecated.
Enables or disables statistics at runtime.
|
public CacheContainerStatsImpl(EmbeddedCacheManager cm)
public void setStatisticsEnabled(boolean enabled)
StatssetStatisticsEnabled in interface JmxStatisticsExposersetStatisticsEnabled in interface Statsenabled - boolean indicating whether statistics should be enable or notpublic boolean getStatisticsEnabled()
JmxStatisticsExposergetStatisticsEnabled in interface JmxStatisticsExposerpublic void resetStatistics()
JmxStatisticsExposerresetStatistics in interface JmxStatisticsExposer@ManagedAttribute(description="Enables or disables the gathering of statistics by this component",
displayName="Statistics enabled",
dataType=TRAIT,
writable=true)
public boolean isStatisticsEnabled()
@ManagedAttribute(description="Cache container total average number of milliseconds for all read operation in this cache container",
displayName="Cache container total average read time",
units=MILLISECONDS)
public long getAverageReadTime()
getAverageReadTime in interface Stats@ManagedAttribute(description="Cache container total average number of nanoseconds for all read operation in this cache container",
displayName="Cache container total average read time (ns)",
units=NANOSECONDS)
public long getAverageReadTimeNanos()
getAverageReadTimeNanos 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="Cache container total average number of milliseconds for all remove operation in this cache container",
displayName="Cache container total average remove time",
units=MILLISECONDS)
public long getAverageRemoveTime()
getAverageRemoveTime in interface Stats@ManagedAttribute(description="Cache container total average number of nanoseconds for all remove operation in this cache container",
displayName="Cache container total average remove time (ns)",
units=NANOSECONDS)
public long getAverageRemoveTimeNanos()
getAverageRemoveTimeNanos in interface Stats@ManagedAttribute(description="Cache container average number of milliseconds for all write operation in this cache container",
displayName="Cache container average write time",
units=MILLISECONDS)
public long getAverageWriteTime()
getAverageWriteTime in interface Stats@ManagedAttribute(description="Cache container average number of nanoseconds for all write operation in this cache container",
displayName="Cache container average write time (ns)",
units=MILLISECONDS)
public long getAverageWriteTimeNanos()
getAverageWriteTimeNanos in interface Stats@ManagedAttribute(description="Cache container total number of cache eviction operations",
displayName="Cache container total number of cache evictions",
measurementType=TRENDSUP)
public long getEvictions()
getEvictions in interface Stats@ManagedAttribute(description="Cache container total number of cache attribute hits",
displayName="Cache container total number of cache hits",
measurementType=TRENDSUP)
public long getHits()
@ManagedAttribute(description="Cache container total percentage hit/(hit+miss) ratio for this cache",
displayName="Cache container total hit ratio",
units=PERCENTAGE)
public double getHitRatio()
getHitRatio in interface CacheContainerStats@ManagedAttribute(description="Cache container total number of cache attribute misses",
displayName="Cache container total number of cache misses",
measurementType=TRENDSUP)
public long getMisses()
@ManagedAttribute(description="Cache container total number of entries currently in all caches from this cache container",
displayName="Cache container total number of all cache entries")
public int getNumberOfEntries()
@ManagedAttribute(description="Cache container total number of entries currently in-memory for all caches in this cache container",
displayName="Cache container total number of in-memory cache entries")
public int getCurrentNumberOfEntriesInMemory()
StatsStats.getCurrentNumberOfEntries(), however passivated entries are not included.getCurrentNumberOfEntriesInMemory in interface Stats@ManagedAttribute(description="Cache container read/writes ratio in all caches from this cache container",
displayName="Cache container read/write ratio",
units=PERCENTAGE)
public double getReadWriteRatio()
getReadWriteRatio in interface CacheContainerStats@ManagedAttribute(description="Cache container total number of cache removal hits",
displayName="Cache container total number of cache removal hits",
measurementType=TRENDSUP)
public long getRemoveHits()
getRemoveHits in interface Stats@ManagedAttribute(description="Cache container total number of cache removals where keys were not found",
displayName="Cache container total number of cache removal misses",
measurementType=TRENDSUP)
public long getRemoveMisses()
getRemoveMisses in interface Stats@ManagedAttribute(description="Cache container total number of cache put operations",
displayName="Cache container total number of cache puts",
measurementType=TRENDSUP)
public long getStores()
@ManagedAttribute(description="Number of seconds since the cache container statistics were last reset",
displayName="Seconds since cache container statistics were reset",
units=SECONDS)
public long getTimeSinceReset()
getTimeSinceReset in interface Stats@ManagedAttribute(description="Number of seconds since cache started",
displayName="Seconds since cache started",
units=SECONDS,
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 in a given cache container for entries with eviction",
displayName="Container memory used by eviction")
public long getDataMemoryUsed()
StatsgetDataMemoryUsed in interface Stats@ManagedAttribute(description="Amount in bytes of off-heap memory used by this cache container",
displayName="Off-Heap memory used")
public long getOffHeapMemoryUsed()
StatsgetOffHeapMemoryUsed in interface Statspublic long getRetrievals()
getRetrievals in interface StatsCopyright © 2021 JBoss by Red Hat. All rights reserved.