public interface TaskManager
Modifier and Type | Method and Description |
---|---|
List<TaskExecution> |
getCurrentTasks()
Retrieves the currently executing tasks.
|
List<TaskEngine> |
getEngines()
Retrieves the installed task engines
|
List<Task> |
getTasks()
Retrieves the list of all available tasks
|
void |
registerTaskEngine(TaskEngine taskEngine)
Registers a new
TaskEngine |
<T> CompletableFuture<T> |
runTask(String taskName,
TaskContext context)
Executes the named task, passing an optional cache and a map of named parameters.
|
<T> CompletableFuture<T> runTask(String taskName, TaskContext context)
taskName
- context
- List<TaskExecution> getCurrentTasks()
TaskExecution
elementsList<TaskEngine> getEngines()
List<Task> getTasks()
Task
elementsvoid registerTaskEngine(TaskEngine taskEngine)
TaskEngine
taskEngine
- an instance of the task engine that has to be registered with the task managerCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.