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 specialTaskEngine
which can handle admin tasks- Since:
- 9.1
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AdminOperationsHandler(Class<? extends AdminServerTask>... taskClasses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of the engineList<Task>
getTasks()
Returns the list of tasks managed by this engineboolean
handles(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:TaskEngine
Returns the name of the engine- Specified by:
getName
in interfaceTaskEngine
-
getTasks
public List<Task> getTasks()
Description copied from interface:TaskEngine
Returns the list of tasks managed by this engine- Specified by:
getTasks
in interfaceTaskEngine
- Returns:
-
runTask
public <T> CompletableFuture<T> runTask(String taskName, TaskContext context, Executor executor)
Description copied from interface:TaskEngine
Executes the named task on the specified cache, passing a map of named parameters.- Specified by:
runTask
in 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:TaskEngine
Returns whether this task engine knows about a specified named task- Specified by:
handles
in interfaceTaskEngine
- Returns:
-
-