Package org.infinispan.tasks.impl
Class TaskManagerImpl
java.lang.Object
org.infinispan.tasks.impl.TaskManagerImpl
- All Implemented Interfaces:
TaskManager
TaskManagerImpl.
- Since:
- 8.1
- Author:
- Tristan Tarrant
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the currently executing tasks.Retrieves the installed task enginesList<org.infinispan.tasks.Task> getTasks()Retrieves the list of all available tasksCompletionStage<List<org.infinispan.tasks.Task>> Same asTaskManager.getTasks()except that the tasks are returned in a non blocking fashion.List<org.infinispan.tasks.Task> CompletionStage<List<org.infinispan.tasks.Task>> Same asTaskManager.getTasks()except that the user tasks are returned in a nonvoidregisterTaskEngine(TaskEngine engine) Registers a newTaskEngine<T> CompletionStage<T> Executes the named task, passing an optional cache and a map of named parameters.voidstart()
-
Constructor Details
-
TaskManagerImpl
public TaskManagerImpl()
-
-
Method Details
-
start
public void start() -
registerTaskEngine
Description copied from interface:TaskManagerRegisters a newTaskEngine- Specified by:
registerTaskEnginein interfaceTaskManager- Parameters:
engine- an instance of the task engine that has to be registered with the task manager
-
runTask
Description copied from interface:TaskManagerExecutes the named task, passing an optional cache and a map of named parameters.- Specified by:
runTaskin interfaceTaskManager- Parameters:
name-context-- Returns:
-
getCurrentTasks
Description copied from interface:TaskManagerRetrieves the currently executing tasks. If running in a cluster this operation will return all of the tasks running on all nodes- Specified by:
getCurrentTasksin interfaceTaskManager- Returns:
- a list of
TaskExecutionelements
-
getEngines
Description copied from interface:TaskManagerRetrieves the installed task engines- Specified by:
getEnginesin interfaceTaskManager
-
getTasks
Description copied from interface:TaskManagerRetrieves the list of all available tasks- Specified by:
getTasksin interfaceTaskManager- Returns:
- a list of
Taskelements
-
getTasksAsync
Description copied from interface:TaskManagerSame asTaskManager.getTasks()except that the tasks are returned in a non blocking fashion.- Specified by:
getTasksAsyncin interfaceTaskManager- Returns:
- a stage that when complete contains all the tasks available
-
getUserTasks
- Specified by:
getUserTasksin interfaceTaskManager- Returns:
- Retrieves the list of all available tasks, excluding administrative tasks with names starting with '@@'
-
getUserTasksAsync
Description copied from interface:TaskManagerSame asTaskManager.getTasks()except that the user tasks are returned in a non- Specified by:
getUserTasksAsyncin interfaceTaskManager- Returns:
- a stage that when complete contains all the user tasks available
-