public final class ActiveMeter extends AbstractMeter implements ActiveSensor
Constructor and Description |
---|
ActiveMeter(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
double |
calculate()
Calculate the current value based on the previous sample().
|
AbstractMeter |
createMax(java.lang.String name) |
void |
end()
End the active
|
void |
sample()
Sample the total count
|
double |
sampleActive()
Sample the active count
|
double |
sampleMax()
Sample the active count
|
void |
start()
Start the active
|
getName, peek, toString
public final void start()
ActiveSensor
start
in interface ActiveSensor
public final void end()
ActiveSensor
end
in interface ActiveSensor
public AbstractMeter createMax(java.lang.String name)
public final double sampleActive()
public final double sampleMax()
public final void sample()
sample
in interface Meter
sample
in class AbstractMeter
public final double calculate()
AbstractMeter
calculate
in interface Meter
calculate
in class AbstractMeter