@Deprecated @InterfaceAudience.Private public class PersistentMetricsTimeVaryingRate extends org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
Modifier and Type | Field and Description |
---|---|
protected long |
lastOper
Deprecated.
|
protected static org.apache.commons.logging.Log |
LOG
Deprecated.
|
protected boolean |
reset
Deprecated.
|
protected long |
totalOps
Deprecated.
|
Constructor and Description |
---|
PersistentMetricsTimeVaryingRate(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry)
Deprecated.
Constructor - create a new metric
|
PersistentMetricsTimeVaryingRate(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry,
String description)
Deprecated.
Constructor - create a new metric
|
Modifier and Type | Method and Description |
---|---|
void |
inc(int numOps,
long time)
Deprecated.
Increment the metrics for numOps operations
|
void |
inc(long time)
Deprecated.
Increment the metrics for numOps operations
|
protected void |
maintainStats()
Deprecated.
|
void |
pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)
Deprecated.
Push updated metrics to the mr.
|
void |
resetMinMaxAvg()
Deprecated.
Rollover to a new interval
NOTE: does not reset numOps.
|
protected static final org.apache.commons.logging.Log LOG
protected boolean reset
protected long lastOper
protected long totalOps
public PersistentMetricsTimeVaryingRate(String nam, org.apache.hadoop.metrics.util.MetricsRegistry registry, String description)
nam
- the name of the metrics to be used to publish the metricregistry
- - where the metrics object will be registereddescription
- metrics descriptionpublic PersistentMetricsTimeVaryingRate(String nam, org.apache.hadoop.metrics.util.MetricsRegistry registry)
nam
- the name of the metrics to be used to publish the metricregistry
- - where the metrics object will be registeredpublic void pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)
MetricsTimeVaryingRate.getPreviousIntervalAverageTime()
and
MetricsTimeVaryingRate.getPreviousIntervalNumOps()
pushMetric
in class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
mr
- owner of this metricpublic void inc(int numOps, long time)
inc
in class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
numOps
- - number of operationstime
- - time for numOps operationspublic void inc(long time)
inc
in class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
time
- - time for numOps operationspublic void resetMinMaxAvg()
protected void maintainStats()
Copyright © 2014 The Apache Software Foundation. All rights reserved.