Interface StatisticsService

All Known Implementing Classes:
DefaultStatisticsService

public interface StatisticsService
Interface for StatisticsService.
  • Method Details

    • addCollector

      boolean addCollector(BasicStatisticsCollector collector)
      Adds the StatisticsCollector collector to the StatisticsService.
      Parameters:
      collector - The StatisticsCollector to add to the StatisticsSerice.
      Returns:
      boolean Indicating, if Adding was successful.
    • removeCollector

      boolean removeCollector(String name)
      Removes the StatisticsCollector identified by name to the StatisticsService.
      Parameters:
      name - The name of the new StatisticsService to remove.
      Returns:
      boolean Indicating, if Removal was successful.
    • addChart

      boolean addChart(StatisticsChart chart)
      Adds all StatisticsCollectors in StatisticsChart chart to the StatisticsService.
      Parameters:
      chart - The StatisticsChart containing the collectors that should be add.
      Returns:
      boolean Indicating, if Adding was successful.
    • removeChart

      boolean removeChart(String name)
      Removes all StatisticsCollectors contained in StatisticsChart identified by name.
      Parameters:
      name - The name of the StatisticsChart containing the StatisticsCollectors to remove.
      Returns:
      boolean Indicating, if Removal was successful.
    • getChart

      StatisticsChart getChart(String name)
      Returns the StatisticsChart identified by name, if available. Otherwise returns null.