Class RatioGauge
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
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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).value()
Returns the metric's current value.Methods inherited from class com.espertech.esper.runtime.internal.metrics.codahale_metrics.metrics.core.Gauge
processWith
-
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
Description copied from class:Gauge
Returns the metric's current value.
-