public class RegionServerDynamicMetrics extends Object implements org.apache.hadoop.metrics.Updater
This class has a number of metrics variables that are publicly accessible; these variables (objects) have methods to update their values; for example: rpcQueueTime.inc(time)
Modifier and Type | Field and Description |
---|---|
org.apache.hadoop.metrics.util.MetricsRegistry |
registry
The metrics variables are public:
- they can be set directly by calling their set/inc methods
-they can also be read directly - e.g.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all metrics this exposes.
|
void |
doUpdates(org.apache.hadoop.metrics.MetricsContext context)
Push the metrics to the monitoring subsystem on doUpdate() call.
|
void |
incrTimeVaryingMetric(String name,
long amt,
int numOps) |
static RegionServerDynamicMetrics |
newInstance(HRegionServer regionServer) |
void |
setNumericMetric(String name,
long amt) |
void |
shutdown() |
public final org.apache.hadoop.metrics.util.MetricsRegistry registry
public static RegionServerDynamicMetrics newInstance(HRegionServer regionServer)
public void setNumericMetric(String name, long amt)
public void incrTimeVaryingMetric(String name, long amt, int numOps)
public void clear()
public void doUpdates(org.apache.hadoop.metrics.MetricsContext context)
doUpdates
in interface org.apache.hadoop.metrics.Updater
context
- ctxpublic void shutdown()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.