org.apache.activemq.console.command
Class ShellCommand

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

public class ShellCommand
extends AbstractCommand


Field Summary
 
Fields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER, context
 
Constructor Summary
ShellCommand()
           
ShellCommand(boolean interactive)
           
 
Method Summary
 String getName()
           
 String getOneLineDescription()
           
 boolean isInteractive()
           
static int main(String[] args, InputStream in, PrintStream out)
          Main method to run a command shell client.
protected  void printHelp()
          Print the help messages for the browse command
protected  void runTask(List<String> tokens)
          Parses for specific command task.
 void setInteractive(boolean interactive)
           
 
Methods inherited from class org.apache.activemq.console.command.AbstractCommand
execute, handleOption, parseOptions, setCommandContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellCommand

public ShellCommand()

ShellCommand

public ShellCommand(boolean interactive)
Method Detail

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

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


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.