com.caucho.env.meter
Class JmxDeltaMeter

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

public final class JmxDeltaMeter
extends AbstractMeter


Constructor Summary
JmxDeltaMeter(java.lang.String name, java.lang.String objectName, java.lang.String attribute)
           
 
Method Summary
 double peek()
          Returns the current value.
 double sample()
          Polls the statistics attribute.
 
Methods inherited from class com.caucho.env.meter.AbstractMeter
getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JmxDeltaMeter

public JmxDeltaMeter(java.lang.String name,
                     java.lang.String objectName,
                     java.lang.String attribute)
Method Detail

sample

public double sample()
Polls the statistics attribute.

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

peek

public double peek()
Description copied from class: AbstractMeter
Returns the current value.

Specified by:
peek in interface Meter
Overrides:
peek in class AbstractMeter