MetricMutableGaugeInt.@Deprecated @InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) public class MetricsIntValue extends MetricsBase
NO_DESCRIPTION| 构造器和说明 |
|---|
MetricsIntValue(String nam,
MetricsRegistry registry)
已过时。
Constructor - create a new metric
|
MetricsIntValue(String nam,
MetricsRegistry registry,
String description)
已过时。
Constructor - create a new metric
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
get()
已过时。
Get value
|
void |
pushMetric(MetricsRecord mr)
已过时。
Push the metric to the mr.
|
void |
set(int newValue)
已过时。
Set the value
|
getDescription, getNamepublic MetricsIntValue(String nam, MetricsRegistry registry, String description)
nam - the name of the metrics to be used to publish the metricregistry - - where the metrics object will be registeredpublic MetricsIntValue(String nam, MetricsRegistry registry)
nam - the name of the metrics to be used to publish the metricregistry - - where the metrics object will be registered
A description of MetricsBase.NO_DESCRIPTION is usedpublic void set(int newValue)
newValue - public int get()
public void pushMetric(MetricsRecord mr)
get()pushMetric 在类中 MetricsBasemr - Copyright © 2009 The Apache Software Foundation