Class DefaultStatisticsChart
java.lang.Object
de.hybris.platform.servicelayer.stats.chart_impl.DefaultStatisticsChart
- All Implemented Interfaces:
StatisticsChart
- Direct Known Subclasses:
DBConnectionsInUseStatsticsChart,SessionsStatisticsChart
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultStatisticsChart(String name, String unit) DefaultStatisticsChart(String name, String unit, StatisticsService statisticsService) -
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.getUnit()getViewLines(String view) Get all lines contained in view.booleanremoveLine(StatisticsCollector collector) RemovesAbstractStatisticsCollectoridentified by name from this chart.voidvoidvoidsetViews(Map<String, List<StatisticsCollector>> mapping)
-
Constructor Details
-
DefaultStatisticsChart
-
DefaultStatisticsChart
-
-
Method Details
-
addLine
Description copied from interface:StatisticsChartAdd aAbstractStatisticsCollectorto this chart.- Specified by:
addLinein interfaceStatisticsChart- Returns:
- Indicating if adding the
AbstractStatisticsCollectorwas successful.
-
removeLine
Description copied from interface:StatisticsChartRemovesAbstractStatisticsCollectoridentified by name from this chart.- Specified by:
removeLinein interfaceStatisticsChart- Parameters:
collector- The collector to remove.
-
getLine
Description copied from interface:StatisticsChartGet a specific line from this chart, identified by name.- Specified by:
getLinein interfaceStatisticsChart- Parameters:
name- The name of theStatisticsCollectoryou want to get.- Returns:
- The
StatisticsCollectorwith Name name.
-
getAllLines
Description copied from interface:StatisticsChartGet AllStatisticsCollectors from this chart.- Specified by:
getAllLinesin interfaceStatisticsChart- Returns:
- The Sorted Map<String,
StatisticsCollector> containing all StatisticsCollectors.
-
getLineCount
public int getLineCount()Description copied from interface:StatisticsChartGet the number of registeredStatisticsCollectors.- Specified by:
getLineCountin interfaceStatisticsChart- Returns:
- The number of collectors in this chart.
-
getName
Description copied from interface:StatisticsChartGet the name of thisStatisticsChart.- Specified by:
getNamein interfaceStatisticsChart- Returns:
- The name of this
StatisticsChart.
-
getUnit
-
addView
Description copied from interface:StatisticsChartAdd a view called name with theStatisticsCollectors to this chart.- Specified by:
addViewin interfaceStatisticsChart- Parameters:
name- The name of the view to add.collectors- The collectors to add to the view.- Returns:
- Indicating if adding was successful.
-
addLinetoView
Description copied from interface:StatisticsChartAdd an specificStatisticsCollectorto the view identified by name.- Specified by:
addLinetoViewin interfaceStatisticsChart- Returns:
- Indicating if adding was successful.
-
getViewLines
Description copied from interface:StatisticsChartGet all lines contained in view. If specified view does not exist, all lines contained in this chart are returned.- Specified by:
getViewLinesin interfaceStatisticsChart- Parameters:
view- The name of the view that you want to get theStatisticsCollectors from.
-
setBasicLines
-
setAggregatedLines
-
containsLine
Description copied from interface:StatisticsChartChecks if the chart contains aStatisticsCollectorcalled name.- Specified by:
containsLinein interfaceStatisticsChart- Returns:
- True, if collector is contained, false if not.
-
setViews
-
getAggregatedCollector
Description copied from interface:StatisticsChartGet all collectors that do not collect data itself but just aggregate data collected by other collectors.- Specified by:
getAggregatedCollectorin interfaceStatisticsChart- Returns:
- The name of the collectors that values should be aggregated.
-
addAggregatedCollector
Description copied from interface:StatisticsChartAdd an aggregated collector to the chart.- Specified by:
addAggregatedCollectorin interfaceStatisticsChart- Parameters:
collector- TheAggregatedStatisticsCollectorto add to the chart.- Returns:
- Indicating if adding was successful or not.
-
getAllAggregatedCollectors
Description copied from interface:StatisticsChartGet all aggregated collectors contained in this chart.- Specified by:
getAllAggregatedCollectorsin interfaceStatisticsChart- 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.
-
getBasicLines
Description copied from interface:StatisticsChartGet only lines of typeBasicStatisticsCollector.- Specified by:
getBasicLinesin interfaceStatisticsChart- Returns:
- The contained collectors of type BasicStatisticsCollector.
-
getAggregatedLines
Description copied from interface:StatisticsChartGet only lines of typeAggregatedStatisticsCollector.- Specified by:
getAggregatedLinesin interfaceStatisticsChart- Returns:
- The contained collectors of type AggregatedStatisticsCollector.
-