Package org.infinispan.server.core.admin
Class AdminServerTask<T>
java.lang.Object
org.infinispan.server.core.admin.AdminServerTask<T>
- All Implemented Interfaces:
JsonSerialization,Task
- Direct Known Subclasses:
CacheCreateTask,CacheNamesTask,CacheReindexTask,CacheRemoveTask,CacheUpdateConfigurationAttributeTask,CacheUpdateIndexSchemaTask,TemplateNamesTask,TemplateRemoveTask
Common base for admin server tasks
- Since:
- 9.0
- Author:
- Tristan Tarrant
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Texecute(EmbeddedCacheManager cacheManager, Map<String, List<String>> parameters, EnumSet<CacheContainerAdmin.AdminFlag> adminFlags) final Texecute(TaskContext taskContext) final StringgetName()Provides a name for the task.protected Stringabstract Stringabstract StringgetType()Returns the type of task.protected StringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.tasks.Task
getAllowedRole, getExecutionMode, getInstantiationMode, getParameters, toJson
-
Field Details
-
log
-
-
Constructor Details
-
AdminServerTask
public AdminServerTask()
-
-
Method Details
-
getName
Description copied from interface:TaskProvides a name for the task. This is the name by which the task will be executed. Make sure the name is unique for each task. -
getType
Description copied from interface:TaskReturns the type of task. This is dependent on the specific implementation. -
execute
-
requireParameter
-
getParameter
-
execute
protected abstract T execute(EmbeddedCacheManager cacheManager, Map<String, List<String>> parameters, EnumSet<CacheContainerAdmin.AdminFlag> adminFlags) -
getTaskContextName
-
getTaskOperationName
-