Class MutableFastCounter

java.lang.Object
org.apache.hadoop.metrics2.lib.MutableMetric
org.apache.hadoop.metrics2.lib.MutableCounter
org.apache.hadoop.metrics2.lib.MutableFastCounter

@Private public class MutableFastCounter extends org.apache.hadoop.metrics2.lib.MutableCounter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final LongAdder
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    MutableFastCounter(org.apache.hadoop.metrics2.MetricsInfo info, long iVal)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    incr(long delta)
    Increment the value by a delta
    void
    snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder builder, boolean all)
     
    long
     

    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
  • Field Details

  • Constructor Details

    • MutableFastCounter

      protected MutableFastCounter(org.apache.hadoop.metrics2.MetricsInfo info, long iVal)
  • Method Details

    • incr

      public void incr()
      Specified by:
      incr in class org.apache.hadoop.metrics2.lib.MutableCounter
    • incr

      public void incr(long delta)
      Increment the value by a delta
      Parameters:
      delta - of the increment
    • snapshot

      public void snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder builder, boolean all)
      Specified by:
      snapshot in class org.apache.hadoop.metrics2.lib.MutableMetric
    • value

      public long value()