org.apache.hadoop.chukwa.datacollection.agent.metrics
Class AgentMetrics

java.lang.Object
  extended by 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


Field Summary
 org.apache.hadoop.metrics.util.MetricsIntValue adaptorCount
           
 org.apache.hadoop.metrics.util.MetricsTimeVaryingInt addedAdaptor
           
static AgentMetrics agentMetrics
           
 org.apache.hadoop.metrics.util.MetricsRegistry registry
           
 org.apache.hadoop.metrics.util.MetricsTimeVaryingInt removedAdaptor
           
 
Constructor Summary
AgentMetrics(String processName, String recordName)
          Creates a new instance of AgentMetrics
 
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
 

Field Detail

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
Constructor Detail

AgentMetrics

public AgentMetrics(String processName,
                    String recordName)
Creates a new instance of AgentMetrics

Method Detail

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