Package org.apache.storm.metric.api.rpc
Class CountShellMetric
java.lang.Object
org.apache.storm.metric.api.CountMetric
org.apache.storm.metric.api.rpc.CountShellMetric
- All Implemented Interfaces:
IMetric
,IShellMetric
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.storm.metric.api.CountMetric
getValueAndReset, incr, incrBy
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
getValueAndReset
-
Constructor Details
-
CountShellMetric
public CountShellMetric()
-
-
Method Details
-
updateMetricFromRPC
Update metric from RPC.- Specified by:
updateMetricFromRPC
in interfaceIShellMetric
- Parameters:
value
- should be null or long if value is null, it will call incr() if value isNumber
, it will call incrBy((long)params)
-