MetricMutableCounterInt
.@Deprecated @InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) public class MetricsTimeVaryingInt extends MetricsBase
NO_DESCRIPTION
构造器和说明 |
---|
MetricsTimeVaryingInt(String nam,
MetricsRegistry registry)
已过时。
Constructor - create a new metric
|
MetricsTimeVaryingInt(String nam,
MetricsRegistry registry,
String description)
已过时。
Constructor - create a new metric
|
限定符和类型 | 方法和说明 |
---|---|
int |
getCurrentIntervalValue()
已过时。
The Value at the current interval
|
int |
getPreviousIntervalValue()
已过时。
The Value at the Previous interval
|
void |
inc()
已过时。
Inc metrics by one
|
void |
inc(int incr)
已过时。
Inc metrics for incr vlaue
|
void |
pushMetric(MetricsRecord mr)
已过时。
Push the delta metrics to the mr.
|
getDescription, getName
public MetricsTimeVaryingInt(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 registereddescription
- - the descriptionpublic MetricsTimeVaryingInt(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 inc(int incr)
incr
- - number of operationspublic void inc()
public void pushMetric(MetricsRecord mr)
previousIntervalValue
pushMetric
在类中 MetricsBase
mr
- public int getPreviousIntervalValue()
public int getCurrentIntervalValue()
Copyright © 2009 The Apache Software Foundation