Package org.apache.storm.metric.api
Class ReducedMetric
java.lang.Object
org.apache.storm.metric.api.ReducedMetric
- All Implemented Interfaces:
- IMetric
- Direct Known Subclasses:
- ReducedShellMetric
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet value and reset.voidMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.storm.metric.api.IMetricgetDimensions
- 
Constructor Details- 
ReducedMetric
 
- 
- 
Method Details- 
update
- 
getValueAndResetDescription copied from interface:IMetricGet value and reset.- Specified by:
- getValueAndResetin interface- IMetric
- 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.
 
 
-