|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.utils.counter.CounterConfig
org.quartz.utils.counter.sampled.SampledCounterConfig
public class SampledCounterConfig
Config for a SampledCounter
| Constructor Summary | |
|---|---|
SampledCounterConfig(int intervalSecs,
int historySize,
boolean isResetOnSample,
long initialValue)
Make a new timed counter config (duh) |
|
| Method Summary | |
|---|---|
Counter |
createCounter()
Creates and returns a Counter based on the initial value |
int |
getHistorySize()
Returns the history size |
int |
getIntervalSecs()
Returns the interval time (seconds) |
boolean |
isResetOnSample()
Returns true if counters created from this config will reset on each sample |
| Methods inherited from class org.quartz.utils.counter.CounterConfig |
|---|
getInitialValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SampledCounterConfig(int intervalSecs,
int historySize,
boolean isResetOnSample,
long initialValue)
intervalSecs - the interval (in seconds) between samplinghistorySize - number of counter samples that will be retained in memoryisResetOnSample - true if the counter should be reset to 0 upon each sample| Method Detail |
|---|
public int getHistorySize()
public int getIntervalSecs()
public boolean isResetOnSample()
public Counter createCounter()
createCounter in class CounterConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||