Class CollectionMetric
- java.lang.Object
-
- com.digitalpebble.stormcrawler.util.CollectionMetric
-
- All Implemented Interfaces:
org.apache.storm.metric.api.IMetric
public class CollectionMetric extends Object implements org.apache.storm.metric.api.IMetric
-
-
Constructor Summary
Constructors Constructor Description CollectionMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMeasurement(long l)
Object
getValueAndReset()
-
-
-
Method Detail
-
addMeasurement
public void addMeasurement(long l)
-
getValueAndReset
public Object getValueAndReset()
- Specified by:
getValueAndReset
in interfaceorg.apache.storm.metric.api.IMetric
-
-