|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.metrics2.lib.MutableMetric org.apache.hadoop.metrics2.lib.MutableCounter org.apache.hadoop.metrics2.lib.MutableCounterLong
@InterfaceAudience.Public @InterfaceStability.Evolving public class MutableCounterLong
A mutable long counter
Method Summary | |
---|---|
void |
incr()
Increment the metric value by 1. |
void |
incr(long delta)
Increment the value by a delta |
void |
snapshot(MetricsRecordBuilder builder,
boolean all)
Get a snapshot of the metric |
long |
value()
|
Methods inherited from class org.apache.hadoop.metrics2.lib.MutableCounter |
---|
info |
Methods inherited from class org.apache.hadoop.metrics2.lib.MutableMetric |
---|
changed, clearChanged, setChanged, snapshot |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void incr()
MutableCounter
incr
in class MutableCounter
public void incr(long delta)
delta
- of the incrementpublic long value()
public void snapshot(MetricsRecordBuilder builder, boolean all)
MutableMetric
snapshot
in class MutableMetric
builder
- the metrics record builderall
- if true, snapshot unchanged metrics as well
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |