Package org.apache.storm.metric.api
Class MultiCountMetric
- java.lang.Object
 - 
- org.apache.storm.metric.api.MultiCountMetric
 
 
- 
- 
Constructor Summary
Constructors Constructor Description MultiCountMetric() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getValueAndReset()Get value and reset.CountMetricscope(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 
 - 
 
 - 
 
- 
- 
Method Detail
- 
scope
public CountMetric 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. 
 
 - 
 
 -