Package de.hybris.platform.task.impl
Class TaskQueuePoolingQueueSizeStatisticsCollector
- java.lang.Object
-
- de.hybris.platform.servicelayer.stats.AbstractStatisticsCollector
-
- de.hybris.platform.task.impl.TaskQueuePoolingQueueSizeStatisticsCollector
-
- All Implemented Interfaces:
BasicStatisticsCollector,StatisticsCollector
public class TaskQueuePoolingQueueSizeStatisticsCollector extends AbstractStatisticsCollector implements BasicStatisticsCollector
-
-
Constructor Summary
Constructors Constructor Description TaskQueuePoolingQueueSizeStatisticsCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatcollect()Collects a specific set of data, to be shown by a chart.booleanevaluateValue(float value)Evaluates the value, looking if the Value makes sense or not.protected intgetCurrentPoolingQueueSize()protected DefaultTaskService.PoolingQueueSizeGaugegetPoolingQueueSizeGauge()voidsetMetricRegistry(com.codahale.metrics.MetricRegistry registry)-
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
-
setMetricRegistry
public void setMetricRegistry(com.codahale.metrics.MetricRegistry registry)
-
collect
public float collect()
Description copied from interface:BasicStatisticsCollectorCollects a specific set of data, to be shown by a chart.- Specified by:
collectin interfaceBasicStatisticsCollector- Returns:
- float The data at the current tick.
-
getPoolingQueueSizeGauge
protected DefaultTaskService.PoolingQueueSizeGauge getPoolingQueueSizeGauge()
-
getCurrentPoolingQueueSize
protected int getCurrentPoolingQueueSize()
-
evaluateValue
public boolean evaluateValue(float value)
Description copied from interface:BasicStatisticsCollectorEvaluates the value, looking if the Value makes sense or not. Some Collectors may not work on some Operating Systems, so that we dont have to collect these data when running the platform on such a OS.- Specified by:
evaluateValuein interfaceBasicStatisticsCollector- Parameters:
value- Float the value that has to be checked.- Returns:
- boolean Indicates if the value makes sense (true) or not (false).
-
-