public class ExtendedStatisticsMBean extends ProxiedDynamicMBean
| Constructor and Description |
|---|
ExtendedStatisticsMBean(Ehcache cache,
ExtendedStatistics extendedStatistics)
Instantiates a new extended statistics m bean.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getAttribute, getAttributes, getBeanName, getMBeanInfo, initialize, invoke, setAttribute, setAttributespublic ExtendedStatisticsMBean(Ehcache cache, ExtendedStatistics extendedStatistics)
cache - the cacheextendedStatistics - the extended statisticspublic 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 historyprotected Map historyToMapDouble(List<org.terracotta.statistics.archive.Timestamped<Double>> history)
history - the historyCopyright 2001-2021, Terracotta, Inc.