|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.scheduler.tasks.AbstractTask org.openmrs.scheduler.tasks.TestTask
public class TestTask
Implementation of a simple task that throws an exception every 10 executions.
Field Summary |
---|
Fields inherited from class org.openmrs.scheduler.tasks.AbstractTask |
---|
isExecuting, taskDefinition |
Constructor Summary | |
---|---|
TestTask()
|
Method Summary | |
---|---|
void |
execute()
Executes the task defined in the task definition. |
void |
initialize(TaskDefinition taskDefinition)
Initializes the task and sets the task definition. |
void |
shutdown()
Callback method used to clean up resources used during the tasks execution. |
Methods inherited from class org.openmrs.scheduler.tasks.AbstractTask |
---|
authenticate, getTaskDefinition, isExecuting, startExecuting, stopExecuting |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestTask()
Method Detail |
---|
public void initialize(TaskDefinition taskDefinition)
Task
initialize
in interface Task
initialize
in class AbstractTask
AbstractTask.initialize(TaskDefinition)
public void execute()
Task
execute
in interface Task
execute
in class AbstractTask
AbstractTask.execute()
public void shutdown()
Task
shutdown
in interface Task
shutdown
in class AbstractTask
AbstractTask.shutdown()
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |