Package org.infinispan.server.core.admin
Class AdminOperationsHandler
- java.lang.Object
-
- org.infinispan.server.core.admin.AdminOperationsHandler
-
- All Implemented Interfaces:
TaskEngine
- Direct Known Subclasses:
EmbeddedServerAdminOperationHandler
public abstract class AdminOperationsHandler extends Object implements TaskEngine
AdminOperationsHandler is a specialTaskEnginewhich can handle admin tasks- Since:
- 9.1
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAdminOperationsHandler(Class<? extends AdminServerTask>... taskClasses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns the name of the engineList<Task>getTasks()Returns the list of tasks managed by this enginebooleanhandles(String taskName)Returns whether this task engine knows about a specified named task<T> CompletableFuture<T>runTask(String taskName, TaskContext context, Executor executor)Executes the named task on the specified cache, passing a map of named parameters.
-
-
-
Constructor Detail
-
AdminOperationsHandler
protected AdminOperationsHandler(Class<? extends AdminServerTask>... taskClasses)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:TaskEngineReturns the name of the engine- Specified by:
getNamein interfaceTaskEngine
-
getTasks
public List<Task> getTasks()
Description copied from interface:TaskEngineReturns the list of tasks managed by this engine- Specified by:
getTasksin interfaceTaskEngine- Returns:
-
runTask
public <T> CompletableFuture<T> runTask(String taskName, TaskContext context, Executor executor)
Description copied from interface:TaskEngineExecutes the named task on the specified cache, passing a map of named parameters.- Specified by:
runTaskin interfaceTaskEngine- Parameters:
taskName- the name of the taskcontext- a task contextexecutor- the executor which the can be used by the task engine to run the task- Returns:
-
handles
public boolean handles(String taskName)
Description copied from interface:TaskEngineReturns whether this task engine knows about a specified named task- Specified by:
handlesin interfaceTaskEngine- Returns:
-
-