Package org.apache.storm.metrics.sigar
Class CPUMetric
java.lang.Object
org.apache.storm.metrics.sigar.CPUMetric
- All Implemented Interfaces:
- IMetric
A metric using Sigar to get User and System CPU utilization for a worker.
- 
Constructor Details- 
CPUMetricpublic CPUMetric()
 
- 
- 
Method Details- 
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.
 
 
-