Interface StatisticsChart
-
- All Known Implementing Classes:
DBConnectionsInUseStatsticsChart,DefaultStatisticsChart,SessionsStatisticsChart
public interface StatisticsChart
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddAggregatedCollector(AggregatedStatisticsCollector collector)Add an aggregated collector to the chart.booleanaddLine(StatisticsCollector collector)Add aAbstractStatisticsCollectorto this chart.booleanaddLinetoView(java.lang.String name, StatisticsCollector collector)Add an specificStatisticsCollectorto the view identified by name.booleanaddView(java.lang.String name, java.util.List<StatisticsCollector> collectors)Add a view called name with theStatisticsCollectors to this chart.booleancontainsLine(java.lang.String name)Checks if the chart contains aStatisticsCollectorcalled name.AggregatedStatisticsCollectorgetAggregatedCollector(java.lang.String aggregatedName)Get all collectors that do not collect data itself but just aggregate data collected by other collectors.java.util.List<AggregatedStatisticsCollector>getAggregatedLines()Get only lines of typeAggregatedStatisticsCollector.java.util.List<AggregatedStatisticsCollector>getAllAggregatedCollectors()Get all aggregated collectors contained in this chart.java.util.List<StatisticsCollector>getAllLines()Get AllStatisticsCollectors from this chart.java.util.List<BasicStatisticsCollector>getBasicLines()Get only lines of typeBasicStatisticsCollector.StatisticsCollectorgetLine(java.lang.String name)Get a specific line from this chart, identified by name.intgetLineCount()Get the number of registeredStatisticsCollectors.java.lang.StringgetName()Get the name of thisStatisticsChart.java.util.List<StatisticsCollector>getViewLines(java.lang.String view)Get all lines contained in view.booleanremoveLine(StatisticsCollector collector)RemovesAbstractStatisticsCollectoridentified by name from this chart.
-
-
-
Method Detail
-
addLine
boolean addLine(StatisticsCollector collector)
Add aAbstractStatisticsCollectorto this chart.- Returns:
- Indicating if adding the
AbstractStatisticsCollectorwas successful.
-
removeLine
boolean removeLine(StatisticsCollector collector)
RemovesAbstractStatisticsCollectoridentified by name from this chart.- Parameters:
collector- The collector to remove.
-
getLine
StatisticsCollector getLine(java.lang.String name)
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
boolean containsLine(java.lang.String name)
Checks if the chart contains aStatisticsCollectorcalled name.- Returns:
- True, if collector is contained, false if not.
-
getAllLines
java.util.List<StatisticsCollector> getAllLines()
Get AllStatisticsCollectors from this chart.- Returns:
- The Sorted Map
StatisticsCollector> containing all StatisticsCollectors.
-
getBasicLines
java.util.List<BasicStatisticsCollector> getBasicLines()
Get only lines of typeBasicStatisticsCollector.- Returns:
- The contained collectors of type BasicStatisticsCollector.
-
getAggregatedLines
java.util.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
java.lang.String getName()
Get the name of thisStatisticsChart.- Returns:
- The name of this
StatisticsChart.
-
getViewLines
java.util.List<StatisticsCollector> getViewLines(java.lang.String view)
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
java.util.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
AggregatedStatisticsCollector getAggregatedCollector(java.lang.String aggregatedName)
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
boolean addAggregatedCollector(AggregatedStatisticsCollector collector)
Add an aggregated collector to the chart.- Parameters:
collector- TheAggregatedStatisticsCollectorto add to the chart.- Returns:
- Indicating if adding was successful or not.
-
addView
boolean addView(java.lang.String name, java.util.List<StatisticsCollector> collectors)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
boolean addLinetoView(java.lang.String name, StatisticsCollector collector)Add an specificStatisticsCollectorto the view identified by name.- Returns:
- Indicating if adding was successful.
-
-