org.apache.hadoop.metrics2.lib
Class MutableGauge

java.lang.Object
  extended by org.apache.hadoop.metrics2.lib.MutableMetric
      extended by 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


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

MutableGauge

protected MutableGauge(MetricsInfo info)
Method Detail

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.