com.caucho.server.admin
Class JniCpuStat.ContextSwitchProbe

java.lang.Object
  extended by com.caucho.env.meter.AbstractMeter
      extended by com.caucho.server.admin.JniCpuStat.ContextSwitchProbe
All Implemented Interfaces:
Meter
Enclosing class:
JniCpuStat

public class JniCpuStat.ContextSwitchProbe
extends AbstractMeter


Method Summary
 double peek()
          Returns the current value.
 double sample()
          Return the meter's next sample, resetting any counters for the next sample.
 
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
 

Method Detail

sample

public double sample()
Description copied from class: AbstractMeter
Return the meter's next sample, resetting any counters for the next sample.

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