org.apache.activemq.console.command
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
Method Summary |
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 tokens)
Parses for specific command task, default task is a start task. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
helpFile
protected String[] helpFile
ShellCommand
public ShellCommand()
main
public static int main(String[] args,
InputStream in,
PrintStream out)
- Main method to run a command shell client.
- Parameters:
args
- - command line argumentsin
- - input stream to useout
- - output stream to use
- Returns:
- 0 for a successful run, -1 if there are any exception
runTask
protected void runTask(List tokens)
throws Exception
- Parses for specific command task, default task is a start 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 © 2011 Apache Software Foundation. All Rights Reserved.