Class AbsoluteMetric

    • Constructor Summary

      Constructors 
      Constructor Description
      AbsoluteMetric​(java.lang.String group, java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double getValue()
      Retrieve current value of the metric.
      void increment​(double d)
      Increment the metric by given double value.
      void reset()
      Reset the metric to initial state.
      void setValue​(double v)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbsoluteMetric

        @ConstructorProperties({"group","name"})
        public AbsoluteMetric​(java.lang.String group,
                              java.lang.String name)
    • Method Detail

      • increment

        public void increment​(double d)
        Description copied from class: Metric
        Increment the metric by given double value.
        Specified by:
        increment in class Metric<java.lang.Double>
        Parameters:
        d - the value to increment the metric by
      • getValue

        public java.lang.Double getValue()
        Description copied from class: Metric
        Retrieve current value of the metric.
        Specified by:
        getValue in interface ScalarMetricMBean<java.lang.Double>
        Specified by:
        getValue in class Metric<java.lang.Double>
        Returns:
        current value
      • setValue

        public void setValue​(double v)
      • reset

        public void reset()
        Description copied from class: Metric
        Reset the metric to initial state.
        Specified by:
        reset in class Metric<java.lang.Double>