com.caucho.env.meter
Class ActiveTimeMeter

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

public final class ActiveTimeMeter
extends AbstractMeter
implements ActiveTimeSensor


Constructor Summary
ActiveTimeMeter(java.lang.String name)
           
 
Method Summary
 AbstractMeter createActiveCount(java.lang.String name)
           
 AbstractMeter createActiveCountMax(java.lang.String name)
           
 AbstractMeter createMax(java.lang.String name)
           
 AbstractMeter createSigma(java.lang.String name, int n)
           
 AbstractMeter createTotalCount(java.lang.String name)
           
 void end(long startTime)
          End the active time.
 double sample()
          Return the probe's next average.
 double sampleActiveCount()
          Sample the active count
 double sampleActiveCountMax()
          Sample the active count
 double sampleMax()
          Return the probe's next sample.
 double sampleSigma(int n)
          Return the probe's next 2-sigma
 double sampleTotalCount()
          Sample the total count
 long start()
          Start the active time.
 
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

ActiveTimeMeter

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

start

public final long start()
Description copied from interface: ActiveTimeSensor
Start the active time.

Specified by:
start in interface ActiveTimeSensor

end

public final void end(long startTime)
Description copied from interface: ActiveTimeSensor
End the active time.

Specified by:
end in interface ActiveTimeSensor

createActiveCount

public AbstractMeter createActiveCount(java.lang.String name)

createActiveCountMax

public AbstractMeter createActiveCountMax(java.lang.String name)

createTotalCount

public AbstractMeter createTotalCount(java.lang.String name)

createMax

public AbstractMeter createMax(java.lang.String name)

createSigma

public AbstractMeter createSigma(java.lang.String name,
                                 int n)

sample

public final double sample()
Return the probe's next average.

Specified by:
sample in interface Meter
Specified by:
sample in class AbstractMeter

sampleActiveCount

public final double sampleActiveCount()
Sample the active count


sampleActiveCountMax

public final double sampleActiveCountMax()
Sample the active count


sampleTotalCount

public final double sampleTotalCount()
Sample the total count


sampleSigma

public final double sampleSigma(int n)
Return the probe's next 2-sigma


sampleMax

public final double sampleMax()
Return the probe's next sample.