|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.metrics.util.MetricsBase
org.apache.hadoop.metrics.util.MetricsTimeVaryingLong
MetricMutableCounterLong.
@Deprecated
@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"})
public class MetricsTimeVaryingLongThe MetricsTimeVaryingLong class is for a metric that naturally varies over time (e.g. number of files created). The metrics is accumulated over an interval (set in the metrics config file); the metrics is published at the end of each interval and then reset to zero. Hence the counter has the value in the current interval. Note if one wants a time associated with the metric then use
MetricsTimeVaryingRate| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.metrics.util.MetricsBase |
|---|
NO_DESCRIPTION |
| Constructor Summary | |
|---|---|
MetricsTimeVaryingLong(String nam,
MetricsRegistry registry)
Deprecated. Constructor - create a new metric |
|
MetricsTimeVaryingLong(String nam,
MetricsRegistry registry,
String description)
Deprecated. Constructor - create a new metric |
|
| Method Summary | |
|---|---|
long |
getCurrentIntervalValue()
Deprecated. The Value at the current interval |
long |
getPreviousIntervalValue()
Deprecated. The Value at the Previous interval |
void |
inc()
Deprecated. Inc metrics by one |
void |
inc(long incr)
Deprecated. Inc metrics for incr vlaue |
void |
pushMetric(MetricsRecord mr)
Deprecated. Push the delta metrics to the mr. |
| Methods inherited from class org.apache.hadoop.metrics.util.MetricsBase |
|---|
getDescription, getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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 registered
public 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 used| Method Detail |
|---|
public void inc(long incr)
incr - - number of operationspublic void inc()
public void pushMetric(MetricsRecord mr)
previousIntervalValue
pushMetric in class MetricsBasemr - public long getPreviousIntervalValue()
public long getCurrentIntervalValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||