|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.metrics.util.MetricsBase org.apache.hadoop.metrics.util.MetricsLongValue
org.apache.hadoop.metrics2
usage.
@Deprecated @InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) public class MetricsLongValue
The MetricsLongValue class is for a metric that is not time varied but changes only when it is set. Each time its value is set, it is published only *once* at the next update call.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.metrics.util.MetricsBase |
---|
NO_DESCRIPTION |
Constructor Summary | |
---|---|
MetricsLongValue(String nam,
MetricsRegistry registry)
Deprecated. Constructor - create a new metric |
|
MetricsLongValue(String nam,
MetricsRegistry registry,
String description)
Deprecated. Constructor - create a new metric |
Method Summary | |
---|---|
long |
get()
Deprecated. Get value |
void |
pushMetric(MetricsRecord mr)
Deprecated. Push the metric to the mr. |
void |
set(long newValue)
Deprecated. Set the value |
Methods inherited from class org.apache.hadoop.metrics.util.MetricsBase |
---|
getDescription, getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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 usedMethod Detail |
---|
public void set(long newValue)
newValue
- public long get()
public void pushMetric(MetricsRecord mr)
get()
pushMetric
in class MetricsBase
mr
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |