org.openmrs.scheduler.tasks
Class TestTask

java.lang.Object
  extended by org.openmrs.scheduler.tasks.AbstractTask
      extended by org.openmrs.scheduler.tasks.TestTask
All Implemented Interfaces:
Task

public class TestTask
extends AbstractTask

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

TestTask

public TestTask()
Method Detail

initialize

public void initialize(TaskDefinition taskDefinition)
Description copied from interface: Task
Initializes the task and sets the task definition.

Specified by:
initialize in interface Task
Overrides:
initialize in class AbstractTask
See Also:
AbstractTask.initialize(TaskDefinition)

execute

public void execute()
Description copied from interface: Task
Executes the task defined in the task definition.

Specified by:
execute in interface Task
Specified by:
execute in class AbstractTask
See Also:
AbstractTask.execute()

shutdown

public void shutdown()
Description copied from interface: Task
Callback method used to clean up resources used during the tasks execution.

Specified by:
shutdown in interface Task
Overrides:
shutdown in class AbstractTask
See Also:
AbstractTask.shutdown()

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change