Class AdminOperationsHandler

  • All Implemented Interfaces:
    org.infinispan.tasks.spi.TaskEngine
    Direct Known Subclasses:
    EmbeddedServerAdminOperationHandler

    public abstract class AdminOperationsHandler
    extends java.lang.Object
    implements org.infinispan.tasks.spi.TaskEngine
    AdminOperationsHandler is a special TaskEngine which can handle admin tasks
    Since:
    9.1
    Author:
    Tristan Tarrant
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      java.util.List<Task> getTasks()  
      boolean handles​(java.lang.String taskName)  
      <T> java.util.concurrent.CompletableFuture<T> runTask​(java.lang.String taskName, TaskContext context, java.util.concurrent.Executor executor)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdminOperationsHandler

        protected AdminOperationsHandler​(java.lang.Class<? extends AdminServerTask>... taskClasses)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.infinispan.tasks.spi.TaskEngine
      • getTasks

        public java.util.List<Task> getTasks()
        Specified by:
        getTasks in interface org.infinispan.tasks.spi.TaskEngine
      • runTask

        public <T> java.util.concurrent.CompletableFuture<T> runTask​(java.lang.String taskName,
                                                                     TaskContext context,
                                                                     java.util.concurrent.Executor executor)
        Specified by:
        runTask in interface org.infinispan.tasks.spi.TaskEngine
      • handles

        public boolean handles​(java.lang.String taskName)
        Specified by:
        handles in interface org.infinispan.tasks.spi.TaskEngine