|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.statistics.beans.ProxiedDynamicMBean net.sf.ehcache.statistics.beans.ExtendedStatisticsMBean
public class ExtendedStatisticsMBean
A dynamically built mbean based on the available statistics for a cache.
Constructor Summary | |
---|---|
ExtendedStatisticsMBean(Ehcache cache,
ExtendedStatistics extendedStatistics)
Instantiates a new extended statistics m bean. |
Method Summary | |
---|---|
static String |
divineName(Ehcache cache)
Divine the name. |
protected Map |
historyToMapDouble(List<org.terracotta.statistics.archive.Timestamped<Double>> history)
History to map double. |
protected Map |
historyToMapLong(List<org.terracotta.statistics.archive.Timestamped<Long>> history)
History to map long. |
void |
recordDoubleStatistic(List<AttributeProxy> proxies,
String longerName,
String baseDescription,
ExtendedStatistics.Statistic<Double> stat)
Record double statistic. |
void |
recordLongStatistic(List<AttributeProxy> proxies,
String longerName,
String baseDescription,
ExtendedStatistics.Statistic<Long> stat)
Record long statistic. |
Methods inherited from class net.sf.ehcache.statistics.beans.ProxiedDynamicMBean |
---|
getAttribute, getAttributes, getBeanName, getMBeanInfo, initialize, invoke, setAttribute, setAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtendedStatisticsMBean(Ehcache cache, ExtendedStatistics extendedStatistics)
cache
- the cacheextendedStatistics
- the extended statisticsMethod Detail |
---|
public void recordDoubleStatistic(List<AttributeProxy> proxies, String longerName, String baseDescription, ExtendedStatistics.Statistic<Double> stat)
proxies
- the proxieslongerName
- the longer namebaseDescription
- the base descriptionstat
- the statpublic void recordLongStatistic(List<AttributeProxy> proxies, String longerName, String baseDescription, ExtendedStatistics.Statistic<Long> stat)
proxies
- the proxieslongerName
- the longer namebaseDescription
- the base descriptionstat
- the statprotected Map historyToMapLong(List<org.terracotta.statistics.archive.Timestamped<Long>> history)
history
- the history
protected Map historyToMapDouble(List<org.terracotta.statistics.archive.Timestamped<Double>> history)
history
- the history
public static String divineName(Ehcache cache)
cache
- the cache
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |