Class DropwizardAutoGauge<T>

  • All Implemented Interfaces:
    com.codahale.metrics.Gauge<java.lang.Long>, com.codahale.metrics.Metric, org.apache.iotdb.metrics.type.Gauge, org.apache.iotdb.metrics.type.IMetric

    public class DropwizardAutoGauge<T>
    extends java.lang.Object
    implements org.apache.iotdb.metrics.type.Gauge, com.codahale.metrics.Gauge<java.lang.Long>
    • Constructor Summary

      Constructors 
      Constructor Description
      DropwizardAutoGauge​(T obj, java.util.function.ToLongFunction<T> mapper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void decr​(long value)  
      java.lang.Long getValue()  
      void incr​(long value)  
      void set​(long value)  
      long value()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.iotdb.metrics.type.IMetric

        toString
    • Constructor Detail

      • DropwizardAutoGauge

        public DropwizardAutoGauge​(T obj,
                                   java.util.function.ToLongFunction<T> mapper)
    • Method Detail

      • getValue

        public java.lang.Long getValue()
        Specified by:
        getValue in interface com.codahale.metrics.Gauge<T>
      • value

        public long value()
        Specified by:
        value in interface org.apache.iotdb.metrics.type.Gauge
      • incr

        public void incr​(long value)
        Specified by:
        incr in interface org.apache.iotdb.metrics.type.Gauge
      • decr

        public void decr​(long value)
        Specified by:
        decr in interface org.apache.iotdb.metrics.type.Gauge
      • set

        public void set​(long value)
        Specified by:
        set in interface org.apache.iotdb.metrics.type.Gauge