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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
execute
(EmbeddedCacheManager cacheManager, Map<String, List<String>> parameters, EnumSet<CacheContainerAdmin.AdminFlag> adminFlags) final T
execute
(TaskContext taskContext) final String
getName()
Provides a name for the task.protected String
abstract String
abstract String
getType()
Returns the type of task.protected String
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:Task
Provides 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:Task
Returns 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
-