|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.metrics.codahale_metrics.metrics.core.Gauge<java.lang.Double>
com.espertech.esper.metrics.codahale_metrics.metrics.util.RatioGauge
public abstract class RatioGauge
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 | |
---|---|
RatioGauge()
|
Method Summary | |
---|---|
protected abstract double |
getDenominator()
Returns the denominator (the value on the bottom half of the fraction or the right-hand side of the ratio). |
protected abstract double |
getNumerator()
Returns the numerator (the value on the top half of the fraction or the left-hand side of the ratio). |
java.lang.Double |
value()
Returns the metric's current value. |
Methods inherited from class com.espertech.esper.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 Detail |
---|
public RatioGauge()
Method Detail |
---|
protected abstract double getNumerator()
protected abstract double getDenominator()
public java.lang.Double value()
Gauge
value
in class Gauge<java.lang.Double>
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |