public class TestTask extends AbstractTask
isExecuting, taskDefinition
Constructor and Description |
---|
TestTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the task defined in the task definition.
|
void |
initialize(TaskDefinition taskDefinition)
Initializes the task and sets the task definition.
|
static void |
setExecutionCount(int executionCount) |
void |
shutdown()
Callback method used to clean up resources used during the tasks execution.
|
getTaskDefinition, isExecuting, startExecuting, stopExecuting
public void initialize(TaskDefinition taskDefinition)
Task
initialize
in interface Task
initialize
in class AbstractTask
AbstractTask.initialize(TaskDefinition)
public static void setExecutionCount(int executionCount)
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()
Copyright © 2024 OpenMRS Inc.. All rights reserved.