com.caucho.env.meter
Class TimeRangeMeter

java.lang.Object
  extended by com.caucho.env.meter.AbstractMeter
      extended by com.caucho.env.meter.TimeRangeMeter
All Implemented Interfaces:
Meter, TimeSensor

public final class TimeRangeMeter
extends AbstractMeter
implements TimeSensor


Constructor Summary
TimeRangeMeter(java.lang.String name)
           
 
Method Summary
 void add(long startTime)
          Adds a time sample to the probe
 AbstractMeter createActiveCount(java.lang.String name)
           
 AbstractMeter createCount(java.lang.String name)
           
 AbstractMeter createMax(java.lang.String name)
           
 double sample()
          Return the probe's next sample.
 double sampleCount()
          Return the probe's next sample.
 double sampleMax()
          Return the probe's next sample.
 long start()
           
 
Methods inherited from class com.caucho.env.meter.AbstractMeter
getName, peek, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeRangeMeter

public TimeRangeMeter(java.lang.String name)
Method Detail

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.