|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.metrics2.lib.MutableMetric org.apache.hadoop.metrics2.lib.MutableGauge org.apache.hadoop.metrics2.lib.MutableGaugeLong
@InterfaceAudience.Public @InterfaceStability.Evolving public class MutableGaugeLong
A mutable long gauge
Method Summary | |
---|---|
void |
decr()
Decrement the value of the metric by 1 |
void |
decr(long delta)
decrement by delta |
void |
incr()
Increment the value of the metric by 1 |
void |
incr(long delta)
Increment by delta |
void |
set(long value)
Set the value of the metric |
void |
snapshot(MetricsRecordBuilder builder,
boolean all)
Get a snapshot of the metric |
long |
value()
|
Methods inherited from class org.apache.hadoop.metrics2.lib.MutableGauge |
---|
info |
Methods inherited from class org.apache.hadoop.metrics2.lib.MutableMetric |
---|
changed, clearChanged, setChanged, snapshot |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public long value()
public void incr()
MutableGauge
incr
in class MutableGauge
public void incr(long delta)
delta
- of the incrementpublic void decr()
MutableGauge
decr
in class MutableGauge
public void decr(long delta)
delta
- of the decrementpublic void set(long value)
value
- to setpublic void snapshot(MetricsRecordBuilder builder, boolean all)
MutableMetric
snapshot
in class MutableMetric
builder
- 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 |