|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.metrics2.lib.MetricMutable
org.apache.hadoop.metrics2.lib.MetricMutableGauge<Integer>
org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt
public class MetricMutableGaugeInt
A mutable int gauge
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.metrics2.lib.MetricMutable |
|---|
description, name |
| Constructor Summary | |
|---|---|
MetricMutableGaugeInt(String name,
String description,
int initValue)
Construct a mutable int gauge metric |
|
| Method Summary | |
|---|---|
void |
decr()
Decrement the value of the metric by 1 |
void |
decr(int delta)
decrement by delta |
void |
incr()
Increment the value of the metric by 1 |
void |
incr(int delta)
Increment by delta |
void |
set(int value)
Set the value of the metric |
void |
snapshot(MetricsRecordBuilder builder,
boolean all)
Get a snapshot/snapshot of the metric |
| Methods inherited from class org.apache.hadoop.metrics2.lib.MetricMutable |
|---|
changed, clearChanged, setChanged, snapshot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetricMutableGaugeInt(String name,
String description,
int initValue)
name - of the gaugedescription - of the gaugeinitValue - the initial value of the gauge| Method Detail |
|---|
public void incr()
MetricMutableGauge
incr in class MetricMutableGauge<Integer>public void incr(int delta)
delta - of the incrementpublic void decr()
MetricMutableGauge
decr in class MetricMutableGauge<Integer>public void decr(int delta)
delta - of the decrementpublic void set(int value)
value - to set
public void snapshot(MetricsRecordBuilder builder,
boolean all)
MetricMutable
snapshot in class MetricMutablebuilder - the metrics record builderall - if true, snapshot unchanged metrics as well
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||