Class AbstractCommand<C extends ExecutionContext>

java.lang.Object
com.redis.riot.core.BaseCommand
com.redis.riot.core.AbstractCommand<C>
All Implemented Interfaces:
Callable<Integer>
Direct Known Subclasses:
AbstractJobCommand

public abstract class AbstractCommand<C extends ExecutionContext> extends BaseCommand implements Callable<Integer>
  • Field Details

    • log

      protected org.slf4j.Logger log
  • Constructor Details

    • AbstractCommand

      public AbstractCommand()
  • Method Details

    • call

      public Integer call() throws Exception
      Specified by:
      call in interface Callable<C extends ExecutionContext>
      Throws:
      Exception
    • executionContext

      protected abstract C executionContext()
    • logLevel

      public org.slf4j.event.Level logLevel()
    • execute

      protected abstract void execute(C context)
    • getLoggingArgs

      public LoggingArgs getLoggingArgs()
    • setLoggingArgs

      public void setLoggingArgs(LoggingArgs args)
    • getLog

      public org.slf4j.Logger getLog()
    • setLog

      public void setLog(org.slf4j.Logger log)