com.caucho.env.meter
Class JmxCalculationMeterImpl

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

public final class JmxCalculationMeterImpl
extends AbstractMeter


Constructor Summary
JmxCalculationMeterImpl(java.lang.String name, JmxExpr expr)
           
 
Method Summary
 double calculate()
          Calculate the current value based on the previous sample().
 void sample()
          Polls the statistics attribute.
 
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

JmxCalculationMeterImpl

public JmxCalculationMeterImpl(java.lang.String name,
                               JmxExpr expr)
Method Detail

sample

public void sample()
Polls the statistics attribute.

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

calculate

public 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