|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.TimerTask
org.opensubsystems.patterns.backgroundtask.util.BackgroundTask
public abstract class BackgroundTask
Background task is base class for all tasks which should be run in the background, that is without user interaction, to execute its functionality.
| Field Summary | |
|---|---|
protected java.lang.Integer |
m_runEvery
How often to run this task |
protected org.opensubsystems.core.util.SetupReader |
m_setupReader
Reader to read configuration for this task. |
protected java.lang.Integer |
m_startDelay
Delay from creation of the task to first invocation |
protected java.lang.String |
m_strTaskDescription
Description of the task, will show in the gui. |
| Constructor Summary | |
|---|---|
BackgroundTask(java.lang.String strTaskDescription,
org.opensubsystems.core.util.SetupReader setupReader)
Default constructor |
|
| Method Summary | |
|---|---|
int |
getRunEvery()
Get value which tells it how often this task should be run. |
org.opensubsystems.core.util.SetupReader |
getSetupReader()
Get setup reader used to read properties for this task. |
int |
getStartDelay()
Get initial delay from the time when the task is created to the time when it is first run. |
| Methods inherited from class java.util.TimerTask |
|---|
cancel, run, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String m_strTaskDescription
protected org.opensubsystems.core.util.SetupReader m_setupReader
protected java.lang.Integer m_startDelay
protected java.lang.Integer m_runEvery
| Constructor Detail |
|---|
public BackgroundTask(java.lang.String strTaskDescription,
org.opensubsystems.core.util.SetupReader setupReader)
strTaskDescription - - description of the task, will show in the guisetupReader - - reader to read configuration for this task. Must also
implement BackgroundTaskSetupReader interface| Method Detail |
|---|
public org.opensubsystems.core.util.SetupReader getSetupReader()
public int getStartDelay()
public int getRunEvery()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||