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
Constructors Constructor Description DefaultAggregatedStaitsicsCollector(java.lang.String name, java.lang.String label, java.lang.String color)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddContainedCollector(BasicStatisticsCollector collector)Add aBasicStatisticsCollectorthat should be aggregated.booleanevaluateValue(float value)Evaluates the value, looking if the Value makes sense or not.java.util.List<BasicStatisticsCollector>getContainedCollectors()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, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.servicelayer.stats.StatisticsCollector
getColor, getEnabled, getLabel, getName, setColor, setEnabled, setLabel, setName
-
-
-
-
Method Detail
-
getContainedCollectors
public java.util.List<BasicStatisticsCollector> 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
public boolean addContainedCollector(BasicStatisticsCollector collector)
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
public boolean removeContainedCollector(BasicStatisticsCollector collector)
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).
-
-