|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.env.meter.AbstractMeter
public abstract class AbstractMeter
Constructor Summary | |
---|---|
protected |
AbstractMeter(java.lang.String name)
|
Method Summary | |
---|---|
abstract double |
calculate()
Calculate the current value based on the previous sample(). |
java.lang.String |
getName()
Returns the meter's name. |
double |
peek()
Returns the current value. |
abstract void |
sample()
Sample the meter, resetting any counters for the next sample. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractMeter(java.lang.String name)
Method Detail |
---|
public final java.lang.String getName()
getName
in interface Meter
public abstract void sample()
sample
in interface Meter
public abstract double calculate()
calculate
in interface Meter
public double peek()
peek
in interface Meter
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |