org.apache.hadoop.metrics2.lib
Class MutableGauge
java.lang.Object
org.apache.hadoop.metrics2.lib.MutableMetric
org.apache.hadoop.metrics2.lib.MutableGauge
- Direct Known Subclasses:
- MutableGaugeInt, MutableGaugeLong
@InterfaceAudience.Public
@InterfaceStability.Evolving
public abstract class MutableGauge
- extends MutableMetric
The mutable gauge metric interface
Method Summary |
abstract void |
decr()
Decrement the value of the metric by 1 |
abstract void |
incr()
Increment the value of the metric by 1 |
protected MetricsInfo |
info()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MutableGauge
protected MutableGauge(MetricsInfo info)
info
protected MetricsInfo info()
incr
public abstract void incr()
- Increment the value of the metric by 1
decr
public abstract void decr()
- Decrement the value of the metric by 1
Copyright © 2014 Apache Software Foundation. All Rights Reserved.