Interface Command

All Known Implementing Classes:
AbstractCommand, AspectCommand, ClearCommand, EchoCommand, HelpCommand, HistoryCommand, JettyCommand, JobCommand, PBDecryptCommand, PBEncryptCommand, QuitCommand, RestartCommand, SysInfoCommand, TransletCommand, UndertowCommand, VerboseCommand

public interface Command
The Command interface allows the command interpreter to delegate tasks.
  • Method Details

    • getOptions

      Options getOptions()
    • getArgumentsList

      List<Arguments> getArgumentsList()
    • execute

      void execute(ParsedOptions options, ShellConsole console) throws Exception
      This method will be called as the starting point to execute the logic for the action mapped to this command.
      Parameters:
      options - the parsed options
      console - the console
      Throws:
      Exception - if an error occurs during command execution
    • printHelp

      void printHelp(ShellConsole console)
      Prints the usage statement for the specified command.
      Parameters:
      console - the Console instance
    • printQuickHelp

      void printQuickHelp(ShellConsole console)
    • getDescriptor

      Command.Descriptor getDescriptor()
      This method returns an instance of Command.Descriptor. The descriptor is meta information about the command.
      Returns:
      a Descriptor that is meta information about the command