com.caucho.env.meter
Class ActiveMeter

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

public final class ActiveMeter
extends AbstractMeter
implements ActiveSensor


Constructor Summary
ActiveMeter(java.lang.String name)
           
 
Method Summary
 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
 
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

ActiveMeter

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

start

public final void start()
Description copied from interface: ActiveSensor
Start the active

Specified by:
start in interface ActiveSensor

end

public final void end()
Description copied from interface: ActiveSensor
End the active

Specified by:
end in interface ActiveSensor

createMax

public AbstractMeter createMax(java.lang.String name)

sampleActive

public final double sampleActive()
Sample the active count


sampleMax

public final double sampleMax()
Sample the active count


sample

public final void sample()
Sample the total count

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

calculate

public final double calculate()
Description copied from class: AbstractMeter
Calculate the current value based on the previous sample().

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