Package org.infinispan.stats.impl
Class CacheContainerStatsImpl
- java.lang.Object
-
- org.infinispan.stats.impl.CacheContainerStatsImpl
-
- All Implemented Interfaces:
JmxStatisticsExposer,CacheContainerStats,Stats
@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, JmxStatisticsExposerDeprecated.Since 10.1.3. This mixes statistics across unrelated caches so the reported numbers don't have too much relevance. Please useStatsorClusterCacheStatsinstead.Cache container statistics needed for admin console- Since:
- 7.1
- Author:
- Vladimir Blagojevic
-
-
Field Summary
-
Fields inherited from interface org.infinispan.stats.CacheContainerStats
OBJECT_NAME
-
-
Constructor Summary
Constructors Constructor Description CacheContainerStatsImpl(EmbeddedCacheManager cm)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetAverageReadTime()Deprecated.longgetAverageReadTimeNanos()Deprecated.longgetAverageRemoveTime()Deprecated.longgetAverageRemoveTimeNanos()Deprecated.longgetAverageWriteTime()Deprecated.longgetAverageWriteTimeNanos()Deprecated.intgetCurrentNumberOfEntries()Deprecated.Returns the number of entries currently in this cache instance.intgetCurrentNumberOfEntriesInMemory()Deprecated.The same asStats.getCurrentNumberOfEntries(), however passivated entries are not included.longgetDataMemoryUsed()Deprecated.Provides how much memory the current eviction algorithm estimates is in use for data.longgetEvictions()Deprecated.doublegetHitRatio()Deprecated.longgetHits()Deprecated.longgetMisses()Deprecated.intgetNumberOfEntries()Deprecated.longgetOffHeapMemoryUsed()Deprecated.The amount of off-heap memory used by this cachedoublegetReadWriteRatio()Deprecated.longgetRemoveHits()Deprecated.longgetRemoveMisses()Deprecated.intgetRequiredMinimumNumberOfNodes()Deprecated.longgetRetrievals()Deprecated.booleangetStatisticsEnabled()Deprecated.Returns whether an interceptor's statistics are being captured.longgetStores()Deprecated.longgetTimeSinceReset()Deprecated.longgetTimeSinceStart()Deprecated.longgetTotalNumberOfEntries()Deprecated.Number of entries stored in cache since the cache started running.booleanisStatisticsEnabled()Deprecated.voidreset()Deprecated.Reset statisticsvoidresetStatistics()Deprecated.Resets an interceptor's cache statisticsvoidsetStatisticsEnabled(boolean enabled)Deprecated.Enables or disables statistics at runtime.
-
-
-
Constructor Detail
-
CacheContainerStatsImpl
public CacheContainerStatsImpl(EmbeddedCacheManager cm)
Deprecated.
-
-
Method Detail
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean enabled)
Deprecated.Description copied from interface:StatsEnables or disables statistics at runtime.- Specified by:
setStatisticsEnabledin interfaceJmxStatisticsExposer- Specified by:
setStatisticsEnabledin interfaceStats- Parameters:
enabled- boolean indicating whether statistics should be enable or not
-
getStatisticsEnabled
public boolean getStatisticsEnabled()
Deprecated.Description copied from interface:JmxStatisticsExposerReturns whether an interceptor's statistics are being captured.- Specified by:
getStatisticsEnabledin interfaceJmxStatisticsExposer- Returns:
- true if statistics are captured
-
resetStatistics
public void resetStatistics()
Deprecated.Description copied from interface:JmxStatisticsExposerResets an interceptor's cache statistics- Specified by:
resetStatisticsin interfaceJmxStatisticsExposer
-
isStatisticsEnabled
@ManagedAttribute(description="Enables or disables the gathering of statistics by this component", displayName="Statistics enabled", dataType=TRAIT, writable=true) public boolean isStatisticsEnabled()Deprecated.
-
getAverageReadTime
@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()Deprecated.- Specified by:
getAverageReadTimein interfaceStats- Returns:
- Average number of milliseconds for a cache get on the cache
-
getAverageReadTimeNanos
@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()Deprecated.- Specified by:
getAverageReadTimeNanosin interfaceStats- Returns:
- Average number of nanoseconds for a cache get on the cache
-
getRequiredMinimumNumberOfNodes
@ManagedAttribute(description="Required minimum number of nodes to hold current cache data", displayName="Required minimum number of nodes") public int getRequiredMinimumNumberOfNodes()Deprecated.- Specified by:
getRequiredMinimumNumberOfNodesin interfaceStats- Returns:
- Required minimum number of nodes to guarantee data consistency
-
getAverageRemoveTime
@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()Deprecated.- Specified by:
getAverageRemoveTimein interfaceStats- Returns:
- Average number of milliseconds for a cache remove on the cache
-
getAverageRemoveTimeNanos
@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()Deprecated.- Specified by:
getAverageRemoveTimeNanosin interfaceStats- Returns:
- Average number of nanoseconds for a cache remove on the cache
-
getAverageWriteTime
@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()Deprecated.- Specified by:
getAverageWriteTimein interfaceStats- Returns:
- Average number of milliseconds for a cache put on the cache
-
getAverageWriteTimeNanos
@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()Deprecated.- Specified by:
getAverageWriteTimeNanosin interfaceStats- Returns:
- Average number of milliseconds for a cache put on the cache
-
getEvictions
@ManagedAttribute(description="Cache container total number of cache eviction operations", displayName="Cache container total number of cache evictions", measurementType=TRENDSUP) public long getEvictions()Deprecated.- Specified by:
getEvictionsin interfaceStats- Returns:
- Number of cache eviction.
-
getHits
@ManagedAttribute(description="Cache container total number of cache attribute hits", displayName="Cache container total number of cache hits", measurementType=TRENDSUP) public long getHits()Deprecated.
-
getHitRatio
@ManagedAttribute(description="Cache container total percentage hit/(hit+miss) ratio for this cache", displayName="Cache container total hit ratio", units=PERCENTAGE) public double getHitRatio()Deprecated.- Specified by:
getHitRatioin interfaceCacheContainerStats
-
getMisses
@ManagedAttribute(description="Cache container total number of cache attribute misses", displayName="Cache container total number of cache misses", measurementType=TRENDSUP) public long getMisses()Deprecated.
-
getNumberOfEntries
@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()Deprecated.
-
getCurrentNumberOfEntriesInMemory
@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()Deprecated.Description copied from interface:StatsThe same asStats.getCurrentNumberOfEntries(), however passivated entries are not included.- Specified by:
getCurrentNumberOfEntriesInMemoryin interfaceStats
-
getReadWriteRatio
@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()Deprecated.- Specified by:
getReadWriteRatioin interfaceCacheContainerStats
-
getRemoveHits
@ManagedAttribute(description="Cache container total number of cache removal hits", displayName="Cache container total number of cache removal hits", measurementType=TRENDSUP) public long getRemoveHits()Deprecated.- Specified by:
getRemoveHitsin interfaceStats- Returns:
- Number of cache removal hits.
-
getRemoveMisses
@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()Deprecated.- Specified by:
getRemoveMissesin interfaceStats- Returns:
- Number of cache removal misses.
-
getStores
@ManagedAttribute(description="Cache container total number of cache put operations", displayName="Cache container total number of cache puts", measurementType=TRENDSUP) public long getStores()Deprecated.
-
getTimeSinceReset
@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()Deprecated.- Specified by:
getTimeSinceResetin interfaceStats- Returns:
- Number of seconds since stats where reset
-
getTimeSinceStart
@ManagedAttribute(description="Number of seconds since cache started", displayName="Seconds since cache started", units=SECONDS, measurementType=TRENDSUP) public long getTimeSinceStart()Deprecated.- Specified by:
getTimeSinceStartin interfaceStats- Returns:
- Number of seconds since cache started.
-
getCurrentNumberOfEntries
public int getCurrentNumberOfEntries()
Deprecated.Description copied from interface:StatsReturns the number of entries currently in this cache instance. When the cache is configured with distribution, this method only returns the number of entries in the local cache instance. In other words, it does not attempt to communicate with other nodes to find out about the data stored in other nodes in the cluster that is not available locally.- Specified by:
getCurrentNumberOfEntriesin interfaceStats- Returns:
- Number of entries currently in the cache, including passivated entries.
-
getTotalNumberOfEntries
public long getTotalNumberOfEntries()
Deprecated.Description copied from interface:StatsNumber of entries stored in cache since the cache started running.- Specified by:
getTotalNumberOfEntriesin interfaceStats
-
getDataMemoryUsed
@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()Deprecated.Description copied from interface:StatsProvides how much memory the current eviction algorithm estimates is in use for data. This method will return a number 0 or greater if memory eviction is in use. If memory eviction is not enabled this method will always return 0.- Specified by:
getDataMemoryUsedin interfaceStats- Returns:
- memory in use or 0 if memory eviction is not enabled
-
getOffHeapMemoryUsed
@ManagedAttribute(description="Amount in bytes of off-heap memory used by this cache container", displayName="Off-Heap memory used") public long getOffHeapMemoryUsed()Deprecated.Description copied from interface:StatsThe amount of off-heap memory used by this cache- Specified by:
getOffHeapMemoryUsedin interfaceStats- Returns:
-
getRetrievals
public long getRetrievals()
Deprecated.- Specified by:
getRetrievalsin interfaceStats- Returns:
- Number of get operations.
-
-