Class ShellCommand

java.lang.Object
org.apache.activemq.console.command.AbstractCommand
org.apache.activemq.console.command.ShellCommand
All Implemented Interfaces:
Command

public class ShellCommand extends AbstractCommand
  • Constructor Details

    • ShellCommand

      public ShellCommand()
    • ShellCommand

      public ShellCommand(boolean interactive)
  • Method Details

    • getName

      public String getName()
    • getOneLineDescription

      public String getOneLineDescription()
    • main

      public static int main(String[] args, InputStream in, PrintStream out)
      Main method to run a command shell client.
      Parameters:
      args - - command line arguments
      in - - input stream to use
      out - - output stream to use
      Returns:
      0 for a successful run, -1 if there are any exception
    • main

      public static void main(String[] args)
    • isInteractive

      public boolean isInteractive()
    • setInteractive

      public void setInteractive(boolean interactive)
    • runTask

      protected void runTask(List<String> tokens) throws Exception
      Parses for specific command task.
      Specified by:
      runTask in class AbstractCommand
      Parameters:
      tokens - - command arguments
      Throws:
      Exception
    • printHelp

      protected void printHelp()
      Print the help messages for the browse command
      Specified by:
      printHelp in class AbstractCommand