@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) public class MetricsIntValue extends MetricsBase
NO_DESCRIPTION| Constructor and Description |
|---|
MetricsIntValue(String nam,
MetricsRegistry registry)
Constructor - create a new metric
|
MetricsIntValue(String nam,
MetricsRegistry registry,
String description)
Constructor - create a new metric
|
| Modifier and Type | Method and Description |
|---|---|
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 in class MetricsBasemr - Copyright © 2013 Apache Software Foundation. All rights reserved.