private static class SystemMonitoring.LoadCounterTask
extends java.util.TimerTask
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Boolean |
run
Stores if this runnable should keep on running and if it was
started (null not started,
true started and
running, false should stop). |
| Modifier | Constructor and Description |
|---|---|
private |
LoadCounterTask() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel() |
void |
collectOnce()
Collect the data.
|
boolean |
isRunning()
Returns if it is running (better if it should not stop).
|
void |
run()
Execute the data collection by calling
collectOnce(). |
private java.lang.Boolean run
true started and
running, false should stop).public boolean cancel()
cancel in class java.util.TimerTaskpublic boolean isRunning()
true if it is running, false if
it should stop or if it was stoppedpublic void run()
collectOnce().run in interface java.lang.Runnablerun in class java.util.TimerTaskpublic void collectOnce()