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 |
boolean |
isInteractive()
|
static int |
main(java.lang.String[] args,
java.io.InputStream in,
java.io.PrintStream out)
Main method to run a command shell client. |
protected void |
printHelp()
Print the help messages for the browse command |
protected void |
runTask(java.util.List<java.lang.String> tokens)
Parses for specific command task. |
void |
setInteractive(boolean interactive)
|
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(java.lang.String[] args,
java.io.InputStream in,
java.io.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(java.util.List<java.lang.String> tokens)
throws java.lang.Exception
- Parses for specific command task.
- Specified by:
runTask
in class AbstractCommand
- Parameters:
tokens
- - command arguments
- Throws:
java.lang.Exception
printHelp
protected void printHelp()
- Print the help messages for the browse command
- Specified by:
printHelp
in class AbstractCommand
Copyright © 2005-2015. All Rights Reserved.