Package | Description |
---|---|
org.openmrs.scheduler | |
org.openmrs.scheduler.db | |
org.openmrs.scheduler.db.hibernate | |
org.openmrs.scheduler.tasks | |
org.openmrs.scheduler.timer |
Modifier and Type | Method and Description |
---|---|
TaskDefinition |
SchedulerService.getTask(Integer id)
Get the task with the given identifier.
|
TaskDefinition |
SchedulerService.getTaskByName(String name)
Get the task with the given name.
|
TaskDefinition |
SchedulerService.getTaskByUuid(String uuid) |
TaskDefinition |
Task.getTaskDefinition()
Returns the task definition associated with this task.
|
Modifier and Type | Method and Description |
---|---|
Collection<TaskDefinition> |
SchedulerService.getRegisteredTasks()
Get the list of tasks that are available to be scheduled.
|
Collection<TaskDefinition> |
SchedulerService.getScheduledTasks()
Get scheduled tasks.
|
Modifier and Type | Method and Description |
---|---|
Task |
TaskFactory.createInstance(TaskDefinition taskDefinition)
Creates a new instance of Schedulable used to run tasks.
|
static Date |
SchedulerUtil.getNextExecution(TaskDefinition taskDefinition)
Gets the next execution time based on the initial start time (possibly years ago, depending
on when the task was configured in OpenMRS) and the repeat interval of execution.
|
void |
Task.initialize(TaskDefinition definition)
Initializes the task and sets the task definition.
|
Task |
SchedulerService.rescheduleTask(TaskDefinition task)
Stop and start a scheduled task.
|
void |
SchedulerService.saveTaskDefinition(TaskDefinition task)
Create the given task
|
void |
SchedulerService.scheduleIfNotRunning(TaskDefinition taskDef)
Schedules a task for execution if not already running
|
Task |
SchedulerService.scheduleTask(TaskDefinition task)
Start a scheduled task as specified in a TaskDefinition.
|
void |
SchedulerService.shutdownTask(TaskDefinition task)
Cancel a scheduled task.
|
Modifier and Type | Method and Description |
---|---|
TaskDefinition |
SchedulerDAO.getTask(Integer taskId)
Get task by internal identifier
|
TaskDefinition |
SchedulerDAO.getTaskByName(String name)
Get task by public name.
|
TaskDefinition |
SchedulerDAO.getTaskByUuid(String uuid) |
Modifier and Type | Method and Description |
---|---|
List<TaskDefinition> |
SchedulerDAO.getTasks()
Find all tasks in the database
|
Modifier and Type | Method and Description |
---|---|
void |
SchedulerDAO.createTask(TaskDefinition taskDefinition)
Creates a new task.
|
void |
SchedulerDAO.deleteTask(TaskDefinition task)
Delete task from database.
|
void |
SchedulerDAO.updateTask(TaskDefinition task)
Update task
|
Modifier and Type | Method and Description |
---|---|
TaskDefinition |
HibernateSchedulerDAO.getTask(Integer taskId)
Get task by internal identifier
|
TaskDefinition |
HibernateSchedulerDAO.getTaskByName(String name)
Get task by public name.
|
TaskDefinition |
HibernateSchedulerDAO.getTaskByUuid(String uuid) |
Modifier and Type | Method and Description |
---|---|
List<TaskDefinition> |
HibernateSchedulerDAO.getTasks()
Find all tasks in the database
|
Modifier and Type | Method and Description |
---|---|
void |
HibernateSchedulerDAO.createTask(TaskDefinition task)
Creates a new task.
|
void |
HibernateSchedulerDAO.deleteTask(TaskDefinition taskConfig)
Delete task from database.
|
void |
HibernateSchedulerDAO.updateTask(TaskDefinition task)
Update task
|
Modifier and Type | Field and Description |
---|---|
protected TaskDefinition |
AbstractTask.taskDefinition |
Modifier and Type | Method and Description |
---|---|
TaskDefinition |
TaskThreadedInitializationWrapper.getTaskDefinition() |
TaskDefinition |
AbstractTask.getTaskDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
TestTask.initialize(TaskDefinition taskDefinition) |
void |
TaskThreadedInitializationWrapper.initialize(TaskDefinition config) |
void |
AbstractTask.initialize(TaskDefinition definition) |
Constructor and Description |
---|
AbstractTask(TaskDefinition taskDefinition)
Constructor
|
Modifier and Type | Method and Description |
---|---|
TaskDefinition |
TimerSchedulerServiceImpl.getTask(Integer id)
Get the task with the given identifier.
|
TaskDefinition |
TimerSchedulerServiceImpl.getTaskByName(String name)
Get the task with the given name.
|
TaskDefinition |
TimerSchedulerServiceImpl.getTaskByUuid(String uuid) |
Modifier and Type | Method and Description |
---|---|
Collection<TaskDefinition> |
TimerSchedulerServiceImpl.getRegisteredTasks()
Get all registered tasks.
|
Collection<TaskDefinition> |
TimerSchedulerServiceImpl.getScheduledTasks()
Get all scheduled tasks.
|
Modifier and Type | Method and Description |
---|---|
void |
TimerSchedulerServiceImpl.registerTask(TaskDefinition definition)
Register a new task by adding it to our task map with an empty schedule map.
|
Task |
TimerSchedulerServiceImpl.rescheduleTask(TaskDefinition taskDefinition) |
void |
TimerSchedulerServiceImpl.saveTaskDefinition(TaskDefinition task)
Save a task in the database.
|
void |
TimerSchedulerServiceImpl.scheduleIfNotRunning(TaskDefinition taskDef) |
Task |
TimerSchedulerServiceImpl.scheduleTask(TaskDefinition taskDefinition)
Schedule the given task according to the given schedule.
|
void |
TimerSchedulerServiceImpl.shutdownTask(TaskDefinition taskDefinition)
Stops a running task.
|
Copyright © 2024 OpenMRS Inc.. All rights reserved.