Interface StatisticsChart
- All Known Implementing Classes:
DBConnectionsInUseStatsticsChart,DefaultStatisticsChart,SessionsStatisticsChart
public interface StatisticsChart
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd an aggregated collector to the chart.booleanaddLine(StatisticsCollector collector) Add aAbstractStatisticsCollectorto this chart.booleanaddLinetoView(String name, StatisticsCollector collector) Add an specificStatisticsCollectorto the view identified by name.booleanaddView(String name, List<StatisticsCollector> collectors) Add a view called name with theStatisticsCollectors to this chart.booleancontainsLine(String name) Checks if the chart contains aStatisticsCollectorcalled name.getAggregatedCollector(String aggregatedName) Get all collectors that do not collect data itself but just aggregate data collected by other collectors.Get only lines of typeAggregatedStatisticsCollector.Get all aggregated collectors contained in this chart.Get AllStatisticsCollectors from this chart.Get only lines of typeBasicStatisticsCollector.Get a specific line from this chart, identified by name.intGet the number of registeredStatisticsCollectors.getName()Get the name of thisStatisticsChart.getViewLines(String view) Get all lines contained in view.booleanremoveLine(StatisticsCollector collector) RemovesAbstractStatisticsCollectoridentified by name from this chart.
-
Method Details
-
addLine
Add aAbstractStatisticsCollectorto this chart.- Returns:
- Indicating if adding the
AbstractStatisticsCollectorwas successful.
-
removeLine
RemovesAbstractStatisticsCollectoridentified by name from this chart.- Parameters:
collector- The collector to remove.
-
getLine
Get a specific line from this chart, identified by name.- Parameters:
name- The name of theStatisticsCollectoryou want to get.- Returns:
- The
StatisticsCollectorwith Name name.
-
containsLine
Checks if the chart contains aStatisticsCollectorcalled name.- Returns:
- True, if collector is contained, false if not.
-
getAllLines
List<StatisticsCollector> getAllLines()Get AllStatisticsCollectors from this chart.- Returns:
- The Sorted Map<String,
StatisticsCollector> containing all StatisticsCollectors.
-
getBasicLines
List<BasicStatisticsCollector> getBasicLines()Get only lines of typeBasicStatisticsCollector.- Returns:
- The contained collectors of type BasicStatisticsCollector.
-
getAggregatedLines
List<AggregatedStatisticsCollector> getAggregatedLines()Get only lines of typeAggregatedStatisticsCollector.- Returns:
- The contained collectors of type AggregatedStatisticsCollector.
-
getLineCount
int getLineCount()Get the number of registeredStatisticsCollectors.- Returns:
- The number of collectors in this chart.
-
getName
String getName()Get the name of thisStatisticsChart.- Returns:
- The name of this
StatisticsChart.
-
getViewLines
Get all lines contained in view. If specified view does not exist, all lines contained in this chart are returned.- Parameters:
view- The name of the view that you want to get theStatisticsCollectors from.
-
getAllAggregatedCollectors
List<AggregatedStatisticsCollector> getAllAggregatedCollectors()Get all aggregated collectors contained in this chart.- Returns:
- All aggregated collectors in a map, where the key is the name of the aggregated collector and the value is
a list containing all
StatisticsCollectors.
-
getAggregatedCollector
Get all collectors that do not collect data itself but just aggregate data collected by other collectors.- Returns:
- The name of the collectors that values should be aggregated.
-
addAggregatedCollector
Add an aggregated collector to the chart.- Parameters:
collector- TheAggregatedStatisticsCollectorto add to the chart.- Returns:
- Indicating if adding was successful or not.
-
addView
Add a view called name with theStatisticsCollectors to this chart.- Parameters:
name- The name of the view to add.collectors- The collectors to add to the view.- Returns:
- Indicating if adding was successful.
-
addLinetoView
Add an specificStatisticsCollectorto the view identified by name.- Returns:
- Indicating if adding was successful.
-