Interface AggregatedStatisticsCollector
- All Superinterfaces:
StatisticsCollector
- All Known Implementing Classes:
DefaultAggregatedStaitsicsCollector
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddContainedCollector(BasicStatisticsCollector collector) Add aBasicStatisticsCollectorthat should be aggregated.booleanevaluateValue(float value) Evaluates the value, looking if the Value makes sense or not.Get allBasicStatisticsCollectors that should be aggregated.booleanremoveContainedCollector(BasicStatisticsCollector collector) RemoveBasicStatisticsCollectorfrom aggregated collectors.Methods inherited from interface de.hybris.platform.servicelayer.stats.StatisticsCollector
getColor, getEnabled, getLabel, getName, setColor, setEnabled, setLabel, setName
-
Method Details
-
getContainedCollectors
List<BasicStatisticsCollector> getContainedCollectors()Get allBasicStatisticsCollectors that should be aggregated.- Returns:
- A list containing the BasicStatisticsCollectors that should be aggregated.
-
addContainedCollector
Add aBasicStatisticsCollectorthat should be aggregated.- Parameters:
collector- The collector to add to aggregated collectors.- Returns:
- Indicating if adding was successful.
-
removeContainedCollector
RemoveBasicStatisticsCollectorfrom aggregated collectors.- Parameters:
collector- The collector to add.- Returns:
- Indicating if removing was successful.
-
evaluateValue
boolean evaluateValue(float value) Evaluates the value, looking if the Value makes sense or not. Some Collectors may not work on some Operating Systems, so that we do not have to collect these data when running the platform on such a OS.- Parameters:
value- Float the value that has to be checked.- Returns:
- boolean Indicates if the value makes sense (true) or not (false).
-