java.lang.Object
com.espertech.esper.runtime.internal.metrics.codahale_metrics.metrics.core.Gauge<Double>
com.espertech.esper.runtime.internal.metrics.codahale_metrics.metrics.util.RatioGauge
All Implemented Interfaces:
Metric
Direct Known Subclasses:
PercentGauge

public abstract class RatioGauge extends Gauge<Double>
A gauge which measures the ratio of one value to another. If the denominator is zero, not a number, or infinite, the resulting ratio is not a number.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract double
    Returns the denominator (the value on the bottom half of the fraction or the right-hand side of the ratio).
    protected abstract double
    Returns the numerator (the value on the top half of the fraction or the left-hand side of the ratio).
    Returns the metric's current value.

    Methods inherited from class com.espertech.esper.runtime.internal.metrics.codahale_metrics.metrics.core.Gauge

    processWith

    Methods inherited from class java.lang.Object

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

    • RatioGauge

      public RatioGauge()
  • Method Details

    • getNumerator

      protected abstract double getNumerator()
      Returns the numerator (the value on the top half of the fraction or the left-hand side of the ratio).
      Returns:
      the numerator
    • getDenominator

      protected abstract double getDenominator()
      Returns the denominator (the value on the bottom half of the fraction or the right-hand side of the ratio).
      Returns:
      the denominator
    • value

      public Double value()
      Description copied from class: Gauge
      Returns the metric's current value.
      Specified by:
      value in class Gauge<Double>
      Returns:
      the metric's current value