Class ShellCommand
java.lang.Object
org.apache.activemq.console.command.AbstractCommand
org.apache.activemq.console.command.ShellCommand
- All Implemented Interfaces:
Command
-
Field Summary
Fields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER, context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanstatic voidstatic intmain(String[] args, InputStream in, PrintStream out) Main method to run a command shell client.protected voidPrint the help messages for the browse commandprotected voidParses for specific command task.voidsetInteractive(boolean interactive) Methods inherited from class org.apache.activemq.console.command.AbstractCommand
execute, handleException, handleOption, parseOptions, printHelpFromFile, setCommandContext
-
Constructor Details
-
ShellCommand
public ShellCommand() -
ShellCommand
public ShellCommand(boolean interactive)
-
-
Method Details
-
getName
-
getOneLineDescription
-
main
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
-
main
-
isInteractive
public boolean isInteractive() -
setInteractive
public void setInteractive(boolean interactive) -
runTask
Parses for specific command task.- Specified by:
runTaskin classAbstractCommand- Parameters:
tokens- - command arguments- Throws:
Exception
-
printHelp
protected void printHelp()Print the help messages for the browse command- Specified by:
printHelpin classAbstractCommand
-