Package org.apache.storm.metric.api
Class MultiReducedMetric
- java.lang.Object
-
- org.apache.storm.metric.api.MultiReducedMetric
-
-
Constructor Summary
Constructors Constructor Description MultiReducedMetric(IReducer reducer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getValueAndReset()Get value and reset.ReducedMetricscope(String key)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.storm.metric.api.IMetric
getDimensions
-
-
-
-
Constructor Detail
-
MultiReducedMetric
public MultiReducedMetric(IReducer reducer)
-
-
Method Detail
-
scope
public ReducedMetric scope(String key)
-
getValueAndReset
public Map<String,Object> getValueAndReset()
Description copied from interface:IMetricGet value and reset.- Specified by:
getValueAndResetin interfaceIMetric- Returns:
- an object that will be sent to
IMetricsConsumer.handleDataPoints(org.apache.storm.metric.api.IMetricsConsumer.TaskInfo, java.util.Collection). Ifnullis returned nothing will be sent. If this value can be reset, like with a counter, a side effect of calling this should be that the value is reset.
-
-