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 |
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.saveTask(TaskDefinition task)
Create the given task
|
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.
|
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.
|
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 |
AbstractTask.getTaskDefinition() |
TaskDefinition |
TaskThreadedInitializationWrapper.getTaskDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
TestTask.initialize(TaskDefinition taskDefinition) |
void |
AbstractTask.initialize(TaskDefinition definition) |
void |
TaskThreadedInitializationWrapper.initialize(TaskDefinition config) |
void |
ConceptIndexUpdateTask.initialize(TaskDefinition config) |
void |
GenerateDataExportTask.initialize(TaskDefinition definition)
Deprecated.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static Set<TaskDefinition> |
TimerSchedulerMemento.getErrorTasks() |
Collection<TaskDefinition> |
TimerSchedulerServiceImpl.getRegisteredTasks()
Get all registered tasks.
|
Collection<TaskDefinition> |
TimerSchedulerServiceImpl.getScheduledTasks()
Get all scheduled tasks.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
TimerSchedulerMemento.addErrorTask(TaskDefinition task) |
void |
TimerSchedulerServiceImpl.registerTask(TaskDefinition definition)
Register a new task by adding it to our task map with an empty schedule map.
|
Boolean |
TimerSchedulerMemento.removeErrorTask(TaskDefinition task) |
Task |
TimerSchedulerServiceImpl.rescheduleTask(TaskDefinition taskDefinition) |
void |
TimerSchedulerServiceImpl.saveTask(TaskDefinition task)
Save a task in the database.
|
Task |
TimerSchedulerServiceImpl.scheduleTask(TaskDefinition taskDefinition)
Schedule the given task according to the given schedule.
|
void |
TimerSchedulerServiceImpl.shutdownTask(TaskDefinition taskDefinition)
Stops a running task.
|
Constructor and Description |
---|
TimerSchedulerMemento(Set<TaskDefinition> tasks) |
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.