org.apache.activemq.console.command
public class BrowseCommand extends AbstractJmxCommand
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
helpFile |
static java.lang.String |
QUEUE_PREFIX |
static java.lang.String |
TOPIC_PREFIX |
static java.lang.String |
VIEW_GROUP_BODY |
static java.lang.String |
VIEW_GROUP_CUSTOM |
static java.lang.String |
VIEW_GROUP_HEADER |
DEFAULT_JMX_URL
COMMAND_OPTION_DELIMETER, context
Constructor and Description |
---|
BrowseCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleOption(java.lang.String token,
java.util.List<java.lang.String> tokens)
Handle the --msgsel, --xmsgsel, --view, -V options.
|
protected void |
printHelp()
Print the help messages for the browse command
|
protected void |
runTask(java.util.List<java.lang.String> tokens)
Execute the browse command, which allows you to browse the messages in a
given JMS destination
|
closeJmxConnection, createJmxConnection, execute, findJMXUrlByProcessId, getJmxPassword, getJmxServiceUrl, getJmxUser, getJVM, isJmxUseLocal, isSunJVM, setJmxPassword, setJmxServiceUrl, setJmxServiceUrl, setJmxUseLocal, setJmxUser, useJmxServiceUrl
parseOptions, setCommandContext
public static final java.lang.String QUEUE_PREFIX
public static final java.lang.String TOPIC_PREFIX
public static final java.lang.String VIEW_GROUP_HEADER
public static final java.lang.String VIEW_GROUP_CUSTOM
public static final java.lang.String VIEW_GROUP_BODY
protected java.lang.String[] helpFile
public BrowseCommand()
protected void runTask(java.util.List<java.lang.String> tokens) throws java.lang.Exception
runTask
in class AbstractCommand
tokens
- - command argumentsjava.lang.Exception
protected void handleOption(java.lang.String token, java.util.List<java.lang.String> tokens) throws java.lang.Exception
handleOption
in class AbstractJmxCommand
token
- - option token to handletokens
- - succeeding command argumentsjava.lang.Exception
protected void printHelp()
printHelp
in class AbstractCommand
Copyright © 2005-2014. All Rights Reserved.