| Modifier and Type | Class and Description |
|---|---|
class |
Job
Synchronously executes a series of Tasks in order.
|
class |
Task
A unit of work in the system.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T extends Worker> |
Job.addTask(Class<T> type)
Creates and adds a task of the specified type.
|
protected <T extends Worker> |
Job.addTask(T task)
Throws IllegalStateException if invoked after run() is called
|
protected <C extends Collection<? extends Worker>> |
Job.addTasks(C tasks) |
protected <T extends Worker> |
SimpleJobManager.createInstance(Class<T> type) |
protected <T extends Worker> |
Job.createTask(Class<T> type) |
<T extends Worker> |
SimpleJobManager.createWorker(Class<T> type) |
<T extends Worker> |
JobManager.createWorker(Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
Worker |
Job.getCurrentTask() |
Worker |
WorkerStatusChangeEvent.getSource() |
protected Worker |
Job.nextTask() |
| Modifier and Type | Method and Description |
|---|---|
List<Worker> |
Job.getTasks() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
Job.initializeTask(Worker task)
Called before task execution.
|
protected void |
Job.onTaskCompleted(Worker task)
Called when the task ends its execution with the status
Status#COMPLETED |
protected void |
Job.onTaskEnd(Worker task)
Called when the task ends its execution.
|
protected void |
Job.onTaskFailed(Worker task) |
protected void |
Job.runTask(Worker task) |
| Constructor and Description |
|---|
WorkerStatusChangeEvent(Worker source,
Worker.Status from,
Worker.Status to) |
Copyright © 2021 Open Foris. All rights reserved.