Package org.infinispan.server.core.admin
Class AdminServerTask<T>
- java.lang.Object
-
- org.infinispan.server.core.admin.AdminServerTask<T>
-
- All Implemented Interfaces:
Task
- Direct Known Subclasses:
CacheCreateTask
,CacheNamesTask
,CacheReindexTask
,CacheRemoveTask
public abstract class AdminServerTask<T> extends Object implements Task
Common base for admin server tasks- Since:
- 9.0
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description AdminServerTask()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
execute(EmbeddedCacheManager cacheManager, Map<String,String> parameters, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> adminFlags)
T
execute(TaskContext taskContext)
String
getName()
Provides a name for the task.protected String
getParameter(Map<String,String> parameters, String parameter)
abstract String
getTaskContextName()
abstract String
getTaskOperationName()
String
getType()
Returns the type of task.protected String
requireParameter(Map<String,String> parameters, String parameter)
-
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, getParameters
-
-
-
-
Field Detail
-
log
protected final Log log
-
-
Method Detail
-
getName
public final String 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 task.
-
getType
public String getType()
Description copied from interface:Task
Returns the type of task. This is dependent on the specific implementation.
-
execute
public final T execute(TaskContext taskContext)
-
requireParameter
protected String requireParameter(Map<String,String> parameters, String parameter)
-
execute
protected abstract T execute(EmbeddedCacheManager cacheManager, Map<String,String> parameters, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> adminFlags)
-
getTaskContextName
public abstract String getTaskContextName()
-
getTaskOperationName
public abstract String getTaskOperationName()
-
-