org.apache.hadoop.metrics2 usage.@Deprecated @InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) public class MetricsLongValue extends MetricsBase
NO_DESCRIPTION| 构造器和说明 |
|---|
MetricsLongValue(String nam,
MetricsRegistry registry)
已过时。
Constructor - create a new metric
|
MetricsLongValue(String nam,
MetricsRegistry registry,
String description)
已过时。
Constructor - create a new metric
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
get()
已过时。
Get value
|
void |
pushMetric(MetricsRecord mr)
已过时。
Push the metric to the mr.
|
void |
set(long newValue)
已过时。
Set the value
|
getDescription, getNamepublic MetricsLongValue(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 MetricsLongValue(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(long newValue)
newValue - public long get()
public void pushMetric(MetricsRecord mr)
get()pushMetric 在类中 MetricsBasemr - Copyright © 2009 The Apache Software Foundation