org.apache.hadoop.chukwa.datacollection.agent.metrics
Class AgentMetrics
java.lang.Object
org.apache.hadoop.chukwa.datacollection.agent.metrics.AgentMetrics
- All Implemented Interfaces:
- org.apache.hadoop.metrics.Updater
public class AgentMetrics
- extends Object
- implements org.apache.hadoop.metrics.Updater
Method Summary |
void |
doUpdates(org.apache.hadoop.metrics.MetricsContext unused)
Since this object is a registered updater, this method will be called
periodically, e.g. |
void |
shutdown()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
agentMetrics
public static final AgentMetrics agentMetrics
registry
public org.apache.hadoop.metrics.util.MetricsRegistry registry
adaptorCount
public org.apache.hadoop.metrics.util.MetricsIntValue adaptorCount
addedAdaptor
public org.apache.hadoop.metrics.util.MetricsTimeVaryingInt addedAdaptor
removedAdaptor
public org.apache.hadoop.metrics.util.MetricsTimeVaryingInt removedAdaptor
AgentMetrics
public AgentMetrics(String processName,
String recordName)
- Creates a new instance of AgentMetrics
doUpdates
public void doUpdates(org.apache.hadoop.metrics.MetricsContext unused)
- Since this object is a registered updater, this method will be called
periodically, e.g. every 5 seconds.
- Specified by:
doUpdates
in interface org.apache.hadoop.metrics.Updater
shutdown
public void shutdown()
Copyright © ${year} The Apache Software Foundation