Class DefaultStatisticsService

  • All Implemented Interfaces:
    StatisticsService, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

    public class DefaultStatisticsService
    extends java.lang.Object
    implements StatisticsService, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
    Default StatisticsService for collecting data for use in hAC-charts.
    • Constructor Detail

      • DefaultStatisticsService

        public DefaultStatisticsService()
    • Method Detail

      • setInterval

        public void setInterval​(long interval)
      • setDataHolder

        public void setDataHolder​(StatisticsData dataHolder)
      • removeCollector

        public boolean removeCollector​(java.lang.String name)
        Description copied from interface: StatisticsService
        Removes the StatisticsCollector identified by name to the StatisticsService.
        Specified by:
        removeCollector in interface StatisticsService
        Parameters:
        name - The name of the new StatisticsService to remove.
        Returns:
        boolean Indicating, if Removal was successful.
      • removeChart

        public boolean removeChart​(java.lang.String name)
        Description copied from interface: StatisticsService
        Removes all StatisticsCollectors contained in StatisticsChart identified by name.
        Specified by:
        removeChart in interface StatisticsService
        Parameters:
        name - The name of the StatisticsChart containing the StatisticsCollectors to remove.
        Returns:
        boolean Indicating, if Removal was successful.
      • destroy

        public void destroy()
        Stop the StatisticsDaemon-Thread.
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
      • afterPropertiesSet

        public void afterPropertiesSet()
        Finish initializing, register the not yet registered collectors in collector map and chart map at dataholder and start the StatDaemon-Thread, when DefaultStatisticsService was created by Spring.
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • setCharts

        public void setCharts​(java.util.Collection<StatisticsChart> charts)
      • setStandaloneEnabled

        public void setStandaloneEnabled​(boolean standaloneEnabled)