public final class JmxDeltaMeter extends AbstractMeter
Constructor and Description |
---|
JmxDeltaMeter(java.lang.String name,
java.lang.String objectName,
java.lang.String attribute,
boolean isOptional) |
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 JmxDeltaMeter(java.lang.String name, java.lang.String objectName, java.lang.String attribute, boolean isOptional)
public void sample()
sample
in interface Meter
sample
in class AbstractMeter
public double calculate()
AbstractMeter
calculate
in interface Meter
calculate
in class AbstractMeter