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, toStringpublic final void start()
ActiveSensorstart in interface ActiveSensorpublic final void end()
ActiveSensorend in interface ActiveSensorpublic AbstractMeter createMax(java.lang.String name)
public final double sampleActive()
public final double sampleMax()
public final void sample()
sample in interface Metersample in class AbstractMeterpublic final double calculate()
AbstractMetercalculate in interface Metercalculate in class AbstractMeter