org.apache.hadoop.metrics2.lib
Class MutableCounter

java.lang.Object
  extended by org.apache.hadoop.metrics2.lib.MutableMetric
      extended by org.apache.hadoop.metrics2.lib.MutableCounter
Direct Known Subclasses:
MutableCounterInt, MutableCounterLong

@InterfaceAudience.Public
@InterfaceStability.Evolving
public abstract class MutableCounter
extends MutableMetric

The mutable counter (monotonically increasing) metric interface


Constructor Summary
protected MutableCounter(MetricsInfo info)
           
 
Method Summary
abstract  void incr()
          Increment the metric value 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

MutableCounter

protected MutableCounter(MetricsInfo info)
Method Detail

info

protected MetricsInfo info()

incr

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



Copyright © 2014 Apache Software Foundation. All Rights Reserved.