|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
planetj.util.CMTimerTask
planetj.dataengine.task.DataEngineTimerTask
planetj.dataengine.task.TaskTester
Constructor Summary | |
TaskTester(double pHours)
TaskTester constructor comment. |
Method Summary | |
TaskEvent |
getNewTaskEvent()
Create a new test task event object. |
TestTaskEvent |
getTestTaskEvent()
Returns the TestTaskEvent object used when notifying listerns when the task starts and completes. |
void |
performTask()
The action to be performed by this task. |
protected void |
taskCompleted()
Called when the task is completed. |
protected void |
taskStarted()
Called when the task is started. |
Methods inherited from class planetj.dataengine.task.DataEngineTimerTask |
postTask, preTask |
Methods inherited from class planetj.util.CMTimerTask |
addListener, getTaskEvent, removeListener, run, taskFailed |
Methods inherited from class java.util.TimerTask |
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TaskTester(double pHours)
Method Detail |
public TaskEvent getNewTaskEvent()
getNewTaskEvent
in class CMTimerTask
public TestTaskEvent getTestTaskEvent()
public void performTask()
performTask
in class CMTimerTask
protected void taskCompleted()
Note: a call to super.taskCompleted() needs to be called in order to set the completion time for the task as well as to notify any listeners the task has completed.
taskCompleted
in class CMTimerTask
protected void taskStarted()
taskStarted
in class CMTimerTask
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |