Package org.apache.storm.metric.api.rpc
Class AssignableShellMetric
java.lang.Object
org.apache.storm.metric.api.AssignableMetric
org.apache.storm.metric.api.rpc.AssignableShellMetric
- All Implemented Interfaces:
IMetric
,IShellMetric
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
updateMetricFromRPC
(Object value) This interface is used by ShellBolt and ShellSpout through RPC call to update Metric.Methods inherited from class org.apache.storm.metric.api.AssignableMetric
getValueAndReset, setValue
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
-
AssignableShellMetric
-
-
Method Details
-
updateMetricFromRPC
Description copied from interface:IShellMetric
This interface is used by ShellBolt and ShellSpout through RPC call to update Metric.- Specified by:
updateMetricFromRPC
in interfaceIShellMetric
- Parameters:
value
- used to update metric, its's meaning change according implementation Object can be any json support types: String, Long, Double, Boolean, Null, List, Map
-