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