com.caucho.env.meter
Class SampleCountMeter

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

public final class SampleCountMeter
extends AbstractMeter


Constructor Summary
SampleCountMeter(java.lang.String name)
           
 
Method Summary
 void addData()
           
 double calculate()
          Calculate the current value based on the previous sample().
 void sample()
          Return the probe's next sample.
 
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

SampleCountMeter

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

addData

public final void addData()

sample

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

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