Package org.apache.hadoop.metrics2.lib
Class MutableGaugeFloat
java.lang.Object
org.apache.hadoop.metrics2.lib.MutableMetric
org.apache.hadoop.metrics2.lib.MutableGauge
org.apache.hadoop.metrics2.lib.MutableGaugeFloat
A mutable float gauge.
-
Method Summary
Methods inherited from class org.apache.hadoop.metrics2.lib.MutableGauge
infoMethods inherited from class org.apache.hadoop.metrics2.lib.MutableMetric
changed, clearChanged, setChanged, snapshot
-
Method Details
-
value
public float value() -
incr
public void incr()Description copied from class:MutableGaugeIncrement the value of the metric by 1- Specified by:
incrin classMutableGauge
-
decr
public void decr()Description copied from class:MutableGaugeDecrement the value of the metric by 1- Specified by:
decrin classMutableGauge
-
snapshot
Description copied from class:MutableMetricGet a snapshot of the metric- Specified by:
snapshotin classMutableMetric- Parameters:
builder- the metrics record builderall- if true, snapshot unchanged metrics as well
-
set
public void set(float value) -
toString
-