|
||||||||||
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.MetricsIntValue
MetricMutableGaugeInt
.
@Deprecated @InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) public class MetricsIntValue
The MetricsIntValue 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 | |
---|---|
MetricsIntValue(String nam,
MetricsRegistry registry)
Deprecated. Constructor - create a new metric |
|
MetricsIntValue(String nam,
MetricsRegistry registry,
String description)
Deprecated. Constructor - create a new metric |
Method Summary | |
---|---|
int |
get()
Deprecated. Get value |
void |
pushMetric(MetricsRecord mr)
Deprecated. Push the metric to the mr. |
void |
set(int 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 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 usedMethod Detail |
---|
public void set(int newValue)
newValue
- public int 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 |