com.caucho.env.meter
Class TimeRangeMeter
java.lang.Object
com.caucho.env.meter.AbstractMeter
com.caucho.env.meter.TimeRangeMeter
- All Implemented Interfaces:
- Meter, TimeSensor
public final class TimeRangeMeter
- extends AbstractMeter
- implements TimeSensor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TimeRangeMeter
public TimeRangeMeter(java.lang.String name)
createCount
public AbstractMeter createCount(java.lang.String name)
createActiveCount
public AbstractMeter createActiveCount(java.lang.String name)
createMax
public AbstractMeter createMax(java.lang.String name)
start
public final long start()
add
public final void add(long startTime)
- Description copied from interface:
TimeSensor
- Adds a time sample to the probe
- Specified by:
add in interface TimeSensor
sample
public final double sample()
- Return the probe's next sample.
- Specified by:
sample in interface Meter- Specified by:
sample in class AbstractMeter
sampleCount
public final double sampleCount()
- Return the probe's next sample.
sampleMax
public final double sampleMax()
- Return the probe's next sample.