|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.metrics.util.MetricsBase
org.apache.hadoop.metrics.util.MetricsLongValue
org.apache.hadoop.metrics2 usage.
@Deprecated
@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"})
public class MetricsLongValueThe 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 registered
public 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 used| Method Detail |
|---|
public void set(long newValue)
newValue - public long get()
public void pushMetric(MetricsRecord mr)
get()
pushMetric in class MetricsBasemr -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||