Class ExtendedStatisticsMBean

  • All Implemented Interfaces:
    javax.management.DynamicMBean

    public class ExtendedStatisticsMBean
    extends ProxiedDynamicMBean
    A dynamically built mbean based on the available statistics for a cache.
    Author:
    cschanck
    • Constructor Detail

      • ExtendedStatisticsMBean

        public ExtendedStatisticsMBean​(Ehcache cache,
                                       ExtendedStatistics extendedStatistics)
        Instantiates a new extended statistics m bean.
        Parameters:
        cache - the cache
        extendedStatistics - the extended statistics
    • Method Detail

      • recordDoubleStatistic

        public void recordDoubleStatistic​(java.util.List<AttributeProxy> proxies,
                                          java.lang.String longerName,
                                          java.lang.String baseDescription,
                                          ExtendedStatistics.Statistic<java.lang.Double> stat)
        Record double statistic.
        Parameters:
        proxies - the proxies
        longerName - the longer name
        baseDescription - the base description
        stat - the stat
      • recordLongStatistic

        public void recordLongStatistic​(java.util.List<AttributeProxy> proxies,
                                        java.lang.String longerName,
                                        java.lang.String baseDescription,
                                        ExtendedStatistics.Statistic<java.lang.Long> stat)
        Record long statistic.
        Parameters:
        proxies - the proxies
        longerName - the longer name
        baseDescription - the base description
        stat - the stat
      • historyToMapLong

        protected java.util.Map historyToMapLong​(java.util.List<org.terracotta.statistics.archive.Timestamped<java.lang.Long>> history)
        History to map long.
        Parameters:
        history - the history
        Returns:
        the map
      • historyToMapDouble

        protected java.util.Map historyToMapDouble​(java.util.List<org.terracotta.statistics.archive.Timestamped<java.lang.Double>> history)
        History to map double.
        Parameters:
        history - the history
        Returns:
        the map
      • divineName

        public static java.lang.String divineName​(Ehcache cache)
        Divine the name.
        Parameters:
        cache - the cache
        Returns:
        the string