|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Meter
Meters gather information from Sensors in a ResinSystem. Some sampled meters like the CPU and JMX don't have an associated Sensor, but gather the data as they are polled. Meters typically gather information when polled and then reset any internal accumulated counters. For example, a request counter meter will clear the request count after being sampled. Meter values can typically be peeked which will return the current value without resetting internal counters.
Method Summary | |
---|---|
double |
calculate()
Returns the meter's calculated value. |
java.lang.String |
getName()
Returns the meter's name. |
double |
peek()
Returns the current meter value without updating the sample. |
void |
sample()
Gather the meter's next sample to be used by the calculate function. |
Method Detail |
---|
java.lang.String getName()
void sample()
double calculate()
double peek()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |