public class MutableFastCounter
extends org.apache.hadoop.metrics2.lib.MutableCounter
Modifier | Constructor and Description |
---|---|
protected |
MutableFastCounter(org.apache.hadoop.metrics2.MetricsInfo info,
long iVal) |
Modifier and Type | Method and Description |
---|---|
void |
incr() |
void |
incr(long delta)
Increment the value by a delta
|
void |
snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder builder,
boolean all) |
long |
value() |
protected MutableFastCounter(org.apache.hadoop.metrics2.MetricsInfo info, long iVal)
public void incr()
incr
in class org.apache.hadoop.metrics2.lib.MutableCounter
public void incr(long delta)
delta
- of the incrementpublic void snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder builder, boolean all)
snapshot
in class org.apache.hadoop.metrics2.lib.MutableMetric
public long value()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.