Class DefaultAggregatedStaitsicsCollector
java.lang.Object
de.hybris.platform.servicelayer.stats.AbstractStatisticsCollector
de.hybris.platform.servicelayer.stats.collector_impl.DefaultAggregatedStaitsicsCollector
- All Implemented Interfaces:
AggregatedStatisticsCollector,StatisticsCollector
public class DefaultAggregatedStaitsicsCollector
extends AbstractStatisticsCollector
implements AggregatedStatisticsCollector
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAggregatedStaitsicsCollector(String name, String label, String color) -
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 class de.hybris.platform.servicelayer.stats.AbstractStatisticsCollector
getColor, getEnabled, getLabel, getName, setColor, setEnabled, setLabel, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.servicelayer.stats.StatisticsCollector
getColor, getEnabled, getLabel, getName, setColor, setEnabled, setLabel, setName
-
Constructor Details
-
DefaultAggregatedStaitsicsCollector
-
-
Method Details
-
getContainedCollectors
Description copied from interface:AggregatedStatisticsCollectorGet allBasicStatisticsCollectors that should be aggregated.- Specified by:
getContainedCollectorsin interfaceAggregatedStatisticsCollector- Returns:
- A list containing the BasicStatisticsCollectors that should be aggregated.
-
addContainedCollector
Description copied from interface:AggregatedStatisticsCollectorAdd aBasicStatisticsCollectorthat should be aggregated.- Specified by:
addContainedCollectorin interfaceAggregatedStatisticsCollector- Parameters:
collector- The collector to add to aggregated collectors.- Returns:
- Indicating if adding was successful.
-
removeContainedCollector
Description copied from interface:AggregatedStatisticsCollectorRemoveBasicStatisticsCollectorfrom aggregated collectors.- Specified by:
removeContainedCollectorin interfaceAggregatedStatisticsCollector- Parameters:
collector- The collector to add.- Returns:
- Indicating if removing was successful.
-
evaluateValue
public boolean evaluateValue(float value) Description copied from interface:AggregatedStatisticsCollectorEvaluates 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.- Specified by:
evaluateValuein interfaceAggregatedStatisticsCollector- Parameters:
value- Float the value that has to be checked.- Returns:
- boolean Indicates if the value makes sense (true) or not (false).
-