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)
Stats
setStatisticsEnabled
in interface JmxStatisticsExposer
setStatisticsEnabled
in interface Stats
enabled
- boolean indicating whether statistics should be enable or notpublic boolean getStatisticsEnabled()
JmxStatisticsExposer
getStatisticsEnabled
in interface JmxStatisticsExposer
public void resetStatistics()
JmxStatisticsExposer
resetStatistics
in interface JmxStatisticsExposer
public boolean isStatisticsEnabled()
public long getAverageReadTime()
getAverageReadTime
in interface Stats
protected long calculateAverageReadTime()
public long getAverageRemoveTime()
getAverageRemoveTime
in interface Stats
protected long calculateAverageRemoveTime()
public long getAverageWriteTime()
getAverageWriteTime
in interface Stats
protected long calculateAverageWriteTime()
public long getEvictions()
getEvictions
in interface Stats
protected long calculateEvictions()
public long getHits()
protected long calculateHits()
public double getHitRatio()
getHitRatio
in interface CacheContainerStats
protected double calculateHitRatio()
public long getMisses()
protected long calculateMisses()
public int getNumberOfEntries()
protected int calculateNumberOfEntries()
public double getReadWriteRatio()
getReadWriteRatio
in interface CacheContainerStats
protected double calculateReadWriteRatio()
public long getRemoveHits()
getRemoveHits
in interface Stats
protected long calculateRemoveHits()
public long getRemoveMisses()
getRemoveMisses
in interface Stats
protected long calculateRemoveMisses()
public long getStores()
public long getTimeSinceReset()
getTimeSinceReset
in interface Stats
protected long calculateStores()
public long getTimeSinceStart()
getTimeSinceStart
in interface Stats
protected long calculateTimeSinceStart()
public int getCurrentNumberOfEntries()
Stats
getCurrentNumberOfEntries
in interface Stats
public long getTotalNumberOfEntries()
Stats
getTotalNumberOfEntries
in interface Stats
public long getRetrievals()
getRetrievals
in interface Stats
Copyright © 2022 JBoss, a division of Red Hat. All rights reserved.