Class AbstractCommand

java.lang.Object
com.aspectran.daemon.command.AbstractCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
ComponentCommand, InvokeActionCommand, JettyCommand, PollingIntervalCommand, QuitCommand, RestartCommand, SysInfoCommand, TransletCommand, UndertowCommand

public abstract class AbstractCommand extends Object implements Command
  • Constructor Details

    • AbstractCommand

      public AbstractCommand(CommandRegistry registry)
    • AbstractCommand

      public AbstractCommand(CommandRegistry registry, boolean isolated)
  • Method Details

    • getCommandRegistry

      public CommandRegistry getCommandRegistry()
    • isIsolated

      public boolean isIsolated()
      Description copied from interface: Command
      Returns whether it is a command that must be guaranteed not to be executed at the same time as another command.
      Specified by:
      isIsolated in interface Command
      Returns:
      true if the command should ensure that it is not executed at the same time as another command; false otherwise
    • getDaemonService

      public DaemonService getDaemonService()
    • isServiceAvailable

      public boolean isServiceAvailable()
    • debug

      protected String debug(String message)
    • info

      protected String info(String message)
    • warn

      protected String warn(String message)
    • error

      protected String error(String message)
    • success

      protected CommandResult success(String message)
    • failed

      protected CommandResult failed(String message)
    • failed

      protected CommandResult failed(String message, Throwable throwable)
    • failed

      protected CommandResult failed(Throwable throwable)