Interface StatisticsService
-
- All Known Implementing Classes:
DefaultStatisticsService
public interface StatisticsServiceInterface for StatisticsService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddChart(StatisticsChart chart)Adds allStatisticsCollectors inStatisticsChartchart to the StatisticsService.booleanaddCollector(BasicStatisticsCollector collector)Adds theStatisticsCollectorcollector to the StatisticsService.StatisticsChartgetChart(java.lang.String name)Returns theStatisticsChartidentified by name, if available.booleanremoveChart(java.lang.String name)Removes allStatisticsCollectors contained inStatisticsChartidentified by name.booleanremoveCollector(java.lang.String name)Removes theStatisticsCollectoridentified by name to the StatisticsService.
-
-
-
Method Detail
-
addCollector
boolean addCollector(BasicStatisticsCollector collector)
Adds theStatisticsCollectorcollector to the StatisticsService.- Parameters:
collector- The StatisticsCollector to add to the StatisticsSerice.- Returns:
- boolean Indicating, if Adding was successful.
-
removeCollector
boolean removeCollector(java.lang.String name)
Removes theStatisticsCollectoridentified 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 allStatisticsCollectors inStatisticsChartchart to the StatisticsService.- Parameters:
chart- The StatisticsChart containing the collectors that should be add.- Returns:
- boolean Indicating, if Adding was successful.
-
removeChart
boolean removeChart(java.lang.String name)
Removes allStatisticsCollectors contained inStatisticsChartidentified by name.- Parameters:
name- The name of the StatisticsChart containing the StatisticsCollectors to remove.- Returns:
- boolean Indicating, if Removal was successful.
-
getChart
StatisticsChart getChart(java.lang.String name)
Returns theStatisticsChartidentified by name, if available. Otherwise returns null.
-
-