Interface StatisticsService
- All Known Implementing Classes:
DefaultStatisticsService
public interface StatisticsService
Interface for StatisticsService.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddChart(StatisticsChart chart) Adds allStatisticsCollectors inStatisticsChartchart to the StatisticsService.booleanaddCollector(BasicStatisticsCollector collector) Adds theStatisticsCollectorcollector to the StatisticsService.Returns theStatisticsChartidentified by name, if available.booleanremoveChart(String name) Removes allStatisticsCollectors contained inStatisticsChartidentified by name.booleanremoveCollector(String name) Removes theStatisticsCollectoridentified by name to the StatisticsService.
-
Method Details
-
addCollector
Adds theStatisticsCollectorcollector to the StatisticsService.- Parameters:
collector- The StatisticsCollector to add to the StatisticsSerice.- Returns:
- boolean Indicating, if Adding was successful.
-
removeCollector
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
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
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
Returns theStatisticsChartidentified by name, if available. Otherwise returns null.
-