public class ClusterCacheStatsImpl extends Object implements ClusterCacheStats, JmxStatisticsExposer
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_STALE_STATS_THRESHOLD |
| Constructor and Description |
|---|
ClusterCacheStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fetchClusterWideStatsIfNeeded() |
long |
getActivations() |
long |
getAverageReadTime() |
long |
getAverageRemoveTime() |
long |
getAverageWriteTime() |
long |
getCacheLoaderLoads() |
long |
getCacheLoaderMisses() |
int |
getCurrentNumberOfEntries()
Returns the number of entries currently in this cache instance.
|
long |
getEvictions() |
static <T extends CommandInterceptor> |
getFirstInterceptorWhichExtends(AdvancedCache<?,?> cache,
Class<T> interceptorClass) |
double |
getHitRatio() |
long |
getHits() |
long |
getInvalidations() |
long |
getMisses() |
int |
getNumberOfEntries() |
int |
getNumberOfLocksAvailable() |
int |
getNumberOfLocksHeld() |
long |
getPassivations() |
double |
getReadWriteRatio() |
long |
getRemoveHits() |
long |
getRemoveMisses() |
long |
getRetrievals() |
long |
getStaleStatsTreshold() |
boolean |
getStatisticsEnabled()
Returns whether an interceptor's statistics are being captured.
|
long |
getStores() |
long |
getStoreWrites() |
long |
getTimeSinceReset() |
long |
getTimeSinceStart() |
long |
getTotalNumberOfEntries()
Number of entries stored in cache since the cache started running.
|
void |
injectDependencies(Cache<?,?> cache,
TimeService ts,
Configuration configuration) |
boolean |
isStatisticsEnabled() |
protected boolean |
launchNewDistTask() |
void |
reset()
Reset statistics
|
void |
resetStatistics()
Resets an interceptor's cache statistics
|
void |
setStaleStatsTreshold(long staleStatsTreshold) |
void |
setStatisticsEnabled(boolean enabled)
Enables or disables statistics at runtime.
|
void |
start() |
void |
stop() |
public static final long DEFAULT_STALE_STATS_THRESHOLD
public void injectDependencies(Cache<?,?> cache, TimeService ts, Configuration configuration)
public void start()
public void stop()
public long getStaleStatsTreshold()
public void setStaleStatsTreshold(long staleStatsTreshold)
public void resetStatistics()
JmxStatisticsExposerresetStatistics in interface JmxStatisticsExposerpublic 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 boolean isStatisticsEnabled()
public long getAverageReadTime()
getAverageReadTime in interface Statspublic long getAverageRemoveTime()
getAverageRemoveTime in interface Statspublic long getAverageWriteTime()
getAverageWriteTime in interface Statspublic long getEvictions()
getEvictions in interface Statspublic long getHits()
public double getHitRatio()
getHitRatio in interface ClusterCacheStatspublic long getMisses()
public int getNumberOfEntries()
public double getReadWriteRatio()
getReadWriteRatio in interface ClusterCacheStatspublic long getRemoveHits()
getRemoveHits in interface Statspublic long getRemoveMisses()
getRemoveMisses in interface Statspublic long getStores()
public long getTimeSinceStart()
getTimeSinceStart in interface Statspublic long getTimeSinceReset()
getTimeSinceReset in interface Statspublic int getCurrentNumberOfEntries()
StatsgetCurrentNumberOfEntries in interface Statspublic long getTotalNumberOfEntries()
StatsgetTotalNumberOfEntries in interface Statspublic long getRetrievals()
getRetrievals in interface Statspublic void reset()
Statspublic int getNumberOfLocksAvailable()
getNumberOfLocksAvailable in interface ClusterCacheStatspublic int getNumberOfLocksHeld()
getNumberOfLocksHeld in interface ClusterCacheStatspublic long getInvalidations()
getInvalidations in interface ClusterCacheStatspublic long getActivations()
getActivations in interface ClusterCacheStatspublic long getPassivations()
getPassivations in interface ClusterCacheStatspublic long getCacheLoaderLoads()
getCacheLoaderLoads in interface ClusterCacheStatspublic long getCacheLoaderMisses()
getCacheLoaderMisses in interface ClusterCacheStatspublic long getStoreWrites()
getStoreWrites in interface ClusterCacheStatsprotected boolean launchNewDistTask()
protected void fetchClusterWideStatsIfNeeded()
public static <T extends CommandInterceptor> T getFirstInterceptorWhichExtends(AdvancedCache<?,?> cache, Class<T> interceptorClass)
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.