Package org.apache.hadoop.metrics2.lib
Class MutableCounter
java.lang.Object
org.apache.hadoop.metrics2.lib.MutableMetric
org.apache.hadoop.metrics2.lib.MutableCounter
- Direct Known Subclasses:
MutableCounterInt,MutableCounterLong
The mutable counter (monotonically increasing) metric interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidincr()Increment the metric value by 1.protected MetricsInfoinfo()Methods inherited from class org.apache.hadoop.metrics2.lib.MutableMetric
changed, clearChanged, setChanged, snapshot, snapshot
-
Constructor Details
-
MutableCounter
-
-
Method Details
-
info
-
incr
public abstract void incr()Increment the metric value by 1.
-