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
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER, context
-
-
Constructor Summary
Constructors Constructor Description ShellCommand()
ShellCommand(boolean interactive)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
String
getOneLineDescription()
boolean
isInteractive()
static void
main(String[] args)
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 commandprotected 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, handleException, handleOption, parseOptions, printHelpFromFile, setCommandContext
-
-
-
-
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 argumentsin
- - input stream to useout
- - output stream to use- Returns:
- 0 for a successful run, -1 if there are any exception
-
main
public static void main(String[] args)
-
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 classAbstractCommand
- Parameters:
tokens
- - command arguments- Throws:
Exception
-
printHelp
protected void printHelp()
Print the help messages for the browse command- Specified by:
printHelp
in classAbstractCommand
-
-