Class BrowseCommand
java.lang.Object
org.apache.activemq.console.command.AbstractCommand
org.apache.activemq.console.command.AbstractJmxCommand
org.apache.activemq.console.command.BrowseCommand
- All Implemented Interfaces:
Command
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.activemq.console.command.AbstractJmxCommand
DEFAULT_JMX_URLFields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER, context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()protected voidhandleOption(String token, List<String> tokens) Handle the --msgsel, --xmsgsel, --view, -V options.protected voidPrint the help messages for the browse commandprotected voidExecute the browse command, which allows you to browse the messages in a given JMS destinationMethods inherited from class org.apache.activemq.console.command.AbstractJmxCommand
closeJmxConnection, createJmxConnection, execute, findJMXUrlByProcessId, getJmxPassword, getJmxServiceUrl, getJmxUser, getJVM, isJmxUseLocal, isSunJVM, setJmxPassword, setJmxServiceUrl, setJmxServiceUrl, setJmxUseLocal, setJmxUser, useJmxServiceUrlMethods inherited from class org.apache.activemq.console.command.AbstractCommand
handleException, parseOptions, printHelpFromFile, setCommandContext
-
Field Details
-
QUEUE_PREFIX
- See Also:
-
TOPIC_PREFIX
- See Also:
-
VIEW_GROUP_HEADER
- See Also:
-
VIEW_GROUP_CUSTOM
- See Also:
-
VIEW_GROUP_BODY
- See Also:
-
helpFile
-
-
Constructor Details
-
BrowseCommand
public BrowseCommand()
-
-
Method Details
-
getName
-
getOneLineDescription
-
runTask
Execute the browse command, which allows you to browse the messages in a given JMS destination- Specified by:
runTaskin classAbstractCommand- Parameters:
tokens- - command arguments- Throws:
Exception
-
handleOption
Handle the --msgsel, --xmsgsel, --view, -V options.- Overrides:
handleOptionin classAbstractJmxCommand- Parameters:
token- - option token to handletokens- - succeeding command arguments- Throws:
Exception
-
printHelp
protected void printHelp()Print the help messages for the browse command- Specified by:
printHelpin classAbstractCommand
-