MetricMutableGauge
.@Deprecated @InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) public class MetricsTimeVaryingRate extends MetricsBase
NO_DESCRIPTION
构造器和说明 |
---|
MetricsTimeVaryingRate(String nam,
MetricsRegistry registry)
已过时。
Constructor - create a new metric
|
MetricsTimeVaryingRate(String nam,
MetricsRegistry registry,
String description)
已过时。
Constructor - create a new metric
|
限定符和类型 | 方法和说明 |
---|---|
long |
getMaxTime()
已过时。
The max time for a single operation since the last reset
resetMinMax() |
long |
getMinTime()
已过时。
The min time for a single operation since the last reset
resetMinMax() |
long |
getPreviousIntervalAverageTime()
已过时。
The average rate of an operation in the previous interval
|
int |
getPreviousIntervalNumOps()
已过时。
The number of operations in the previous interval
|
void |
inc(int numOps,
long time)
已过时。
Increment the metrics for numOps operations
|
void |
inc(long time)
已过时。
Increment the metrics for one operation
|
void |
pushMetric(MetricsRecord mr)
已过时。
Push the delta metrics to the mr.
|
void |
resetMinMax()
已过时。
Reset the min max values
|
getDescription, getName
public MetricsTimeVaryingRate(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 MetricsTimeVaryingRate(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 numOps, long time)
numOps
- - number of operationstime
- - time for numOps operationspublic void inc(long time)
time
- for one operationpublic void pushMetric(MetricsRecord mr)
getPreviousIntervalAverageTime()
and
getPreviousIntervalNumOps()
pushMetric
在类中 MetricsBase
mr
- public int getPreviousIntervalNumOps()
public long getPreviousIntervalAverageTime()
public long getMinTime()
resetMinMax()
public long getMaxTime()
resetMinMax()
public void resetMinMax()
Copyright © 2009 The Apache Software Foundation