Class MutableGauge

  extended by org.apache.hadoop.metrics2.lib.MutableMetric
      extended by org.apache.hadoop.metrics2.lib.MutableGauge
Direct Known Subclasses:
MutableGaugeInt, MutableGaugeLong

public abstract class MutableGauge
extends MutableMetric

The mutable gauge metric interface

Constructor Summary
protected MutableGauge(MetricsInfo info)
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 org.apache.hadoop.metrics2.lib.MutableMetric
changed, clearChanged, setChanged, snapshot, snapshot
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


protected MutableGauge(MetricsInfo info)
Method Detail


protected MetricsInfo info()


public abstract void incr()
Increment the value of the metric by 1


public abstract void decr()
Decrement the value of the metric by 1

Copyright © 2014 Apache Software Foundation. All Rights Reserved.