|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.metrics.util.MetricsTimeVaryingInt
public class MetricsTimeVaryingInt
The MetricsTimeVaryingInt class is for a metric that naturally varies over time (e.g. number of files created). The metric is is published at interval heart beat (the interval is set in the metrics config file). Note if one wants a time associated with the metric then use
MetricsTimeVaryingRate
Constructor Summary | |
---|---|
MetricsTimeVaryingInt(String nam)
Constructor - create a new metric |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetricsTimeVaryingInt(String nam)
nam
- the name of the metrics to be used to publish the metricMethod Detail |
---|
public void inc(int incr)
incr
- - number of operationspublic void inc()
public void pushMetric(MetricsRecord mr)
previousIntervalValue
mr
- public int getPreviousIntervalValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |