Class AdminServerTask<T>

All Implemented Interfaces:
JsonSerialization, Task
Direct Known Subclasses:
CacheCreateTask, CacheNamesTask, CacheReindexTask, CacheRemoveTask, CacheUpdateConfigurationAttributeTask, CacheUpdateIndexSchemaTask, TemplateNamesTask, TemplateRemoveTask

public abstract class AdminServerTask<T> extends Object implements Task
Common base for admin server tasks
Tristan Tarrant
  • Field Details

    • log

      protected static final Log log
  • Constructor Details

    • AdminServerTask

      public AdminServerTask()
  • Method Details

    • 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 each task.
      Specified by:
      getName in interface Task
      name of the task
    • getType

      public String getType()
      Description copied from interface: Task
      Returns the type of task. This is dependent on the specific implementation.
      Specified by:
      getType in interface Task
    • execute

      public final T execute(TaskContext taskContext)
    • requireParameter

      protected String requireParameter(Map<String,List<String>> parameters, String parameter)
    • getParameter

      protected String getParameter(Map<String,List<String>> parameters, String parameter)
    • execute

      protected abstract T execute(EmbeddedCacheManager cacheManager, Map<String,List<String>> parameters, EnumSet<CacheContainerAdmin.AdminFlag> adminFlags)
    • getTaskContextName

      public abstract String getTaskContextName()
    • getTaskOperationName

      public abstract String getTaskOperationName()