public final class JmxCalculationMeterImpl extends AbstractMeter
Constructor and Description |
---|
JmxCalculationMeterImpl(java.lang.String name,
JmxExpr expr) |
Modifier and Type | Method and Description |
---|---|
double |
calculate()
Calculate the current value based on the previous sample().
|
void |
sample()
Polls the statistics attribute.
|
getName, peek, toString
public JmxCalculationMeterImpl(java.lang.String name, JmxExpr expr)
public void sample()
sample
in interface Meter
sample
in class AbstractMeter
public double calculate()
AbstractMeter
calculate
in interface Meter
calculate
in class AbstractMeter