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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShellCommand
public ShellCommand()
ShellCommand
public ShellCommand(boolean interactive)
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
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-2011 Apache Software Foundation. All Rights Reserved.