Package org.apache.storm.metric.api
Class MultiCountMetric
java.lang.Object
org.apache.storm.metric.api.MultiCountMetric
- All Implemented Interfaces:
IMetric
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet value and reset.
-
Constructor Details
-
MultiCountMetric
public MultiCountMetric()
-
-
Method Details
-
scope
-
getValueAndReset
Description copied from interface:IMetric
Get value and reset.- Specified by:
getValueAndReset
in interfaceIMetric
- Returns:
- an object that will be sent to
IMetricsConsumer.handleDataPoints(org.apache.storm.metric.api.IMetricsConsumer.TaskInfo,java.util.Collection)
. Ifnull
is 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.
-