public class CacheContainerStatsImpl extends Object implements CacheContainerStats, JmxStatisticsExposer
OBJECT_NAME| Constructor and Description |
|---|
CacheContainerStatsImpl(EmbeddedCacheManager cm) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
calculateAverageReadTime() |
protected long |
calculateAverageRemoveTime() |
protected long |
calculateAverageWriteTime() |
protected long |
calculateEvictions() |
protected double |
calculateHitRatio() |
protected long |
calculateHits() |
protected long |
calculateMisses() |
protected int |
calculateNumberOfEntries() |
protected double |
calculateReadWriteRatio() |
protected long |
calculateRemoveHits() |
protected long |
calculateRemoveMisses() |
protected long |
calculateStores() |
protected long |
calculateTimeSinceStart() |
long |
getAverageReadTime() |
long |
getAverageRemoveTime() |
long |
getAverageWriteTime() |
int |
getCurrentNumberOfEntries()
Returns the number of entries currently in this cache instance.
|
long |
getEvictions() |
double |
getHitRatio() |
long |
getHits() |
long |
getMisses() |
int |
getNumberOfEntries() |
double |
getReadWriteRatio() |
long |
getRemoveHits() |
long |
getRemoveMisses() |
long |
getRetrievals() |
boolean |
getStatisticsEnabled()
Returns whether an interceptor's statistics are being captured.
|
long |
getStores() |
long |
getTimeSinceReset() |
long |
getTimeSinceStart() |
long |
getTotalNumberOfEntries()
Number of entries stored in cache since the cache started running.
|
boolean |
isStatisticsEnabled() |
void |
reset()
Reset statistics
|
void |
resetStatistics()
Resets an interceptor's cache statistics
|
void |
setDependencies(TimeService timeService) |
void |
setStatisticsEnabled(boolean enabled)
Enables or disables statistics at runtime.
|
public CacheContainerStatsImpl(EmbeddedCacheManager cm)
public void setDependencies(TimeService timeService)
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 JmxStatisticsExposerpublic boolean isStatisticsEnabled()
public long getAverageReadTime()
getAverageReadTime in interface Statsprotected long calculateAverageReadTime()
public long getAverageRemoveTime()
getAverageRemoveTime in interface Statsprotected long calculateAverageRemoveTime()
public long getAverageWriteTime()
getAverageWriteTime in interface Statsprotected long calculateAverageWriteTime()
public long getEvictions()
getEvictions in interface Statsprotected long calculateEvictions()
public long getHits()
protected long calculateHits()
public double getHitRatio()
getHitRatio in interface CacheContainerStatsprotected double calculateHitRatio()
public long getMisses()
protected long calculateMisses()
public int getNumberOfEntries()
protected int calculateNumberOfEntries()
public double getReadWriteRatio()
getReadWriteRatio in interface CacheContainerStatsprotected double calculateReadWriteRatio()
public long getRemoveHits()
getRemoveHits in interface Statsprotected long calculateRemoveHits()
public long getRemoveMisses()
getRemoveMisses in interface Statsprotected long calculateRemoveMisses()
public long getStores()
public long getTimeSinceReset()
getTimeSinceReset in interface Statsprotected long calculateStores()
public long getTimeSinceStart()
getTimeSinceStart in interface Statsprotected long calculateTimeSinceStart()
public int getCurrentNumberOfEntries()
StatsgetCurrentNumberOfEntries in interface Statspublic long getTotalNumberOfEntries()
StatsgetTotalNumberOfEntries in interface Statspublic long getRetrievals()
getRetrievals in interface StatsCopyright © 2024 JBoss, a division of Red Hat. All rights reserved.