public class AgentMetrics extends Object implements org.apache.hadoop.metrics.Updater
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
AgentMetrics(String processName,
String recordName)
Creates a new instance of AgentMetrics
|
Modifier and Type | Method and Description |
---|---|
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() |
public static final AgentMetrics agentMetrics
public org.apache.hadoop.metrics.util.MetricsRegistry registry
public org.apache.hadoop.metrics.util.MetricsIntValue adaptorCount
public org.apache.hadoop.metrics.util.MetricsTimeVaryingInt addedAdaptor
public org.apache.hadoop.metrics.util.MetricsTimeVaryingInt removedAdaptor
public void doUpdates(org.apache.hadoop.metrics.MetricsContext unused)
doUpdates
in interface org.apache.hadoop.metrics.Updater
public void shutdown()
Copyright © 2016 Apache Software Foundation. All Rights Reserved.