| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.metrics.util.MetricsIntValue
public class MetricsIntValue
The MetricsIntValue class is for a metric that is not time varied but changes only when it is set. Each time its value is set, it is published only *once* at the next update call.
| Constructor Summary | |
|---|---|
MetricsIntValue(String nam)
Constructor - create a new metric  | 
|
| Method Summary | |
|---|---|
 void | 
dec()
Dec metrics by one  | 
 void | 
dec(int decr)
Inc metrics for incr vlaue  | 
 int | 
get()
Get value  | 
 void | 
inc()
Inc metrics by one  | 
 void | 
inc(int incr)
Inc metrics for incr vlaue  | 
 void | 
pushMetric(MetricsRecord mr)
Push the metric to the mr.  | 
 void | 
set(int newValue)
Set the value  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MetricsIntValue(String nam)
nam - the name of the metrics to be used to publish the metric| Method Detail | 
|---|
public void set(int newValue)
newValue - public int get()
public void inc(int incr)
incr - - value to be addedpublic void inc()
public void dec(int decr)
decr - - value to subtractpublic void dec()
public void pushMetric(MetricsRecord mr)
get()
mr - 
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||