public class AmqBrowseCommand extends AbstractAmqCommand
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 |
COMMAND_OPTION_DELIMETER, context
Constructor and Description |
---|
AmqBrowseCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleOption(java.lang.String token,
java.util.List 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 tokens)
Execute the browse command, which allows you to browse the messages in a
given JMS destination
|
closeAllConnections, createConnection, createConnection, getBrokerUrl, getConnectionFactory, getPassword, getPasswordFactory, getUsername, setBrokerUrl, setBrokerUrl, setFactory, setPassword, setPasswordFactory, setUsername
execute, 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 AmqBrowseCommand()
protected void runTask(java.util.List tokens) throws java.lang.Exception
runTask
in class AbstractCommand
tokens
- - command argumentsjava.lang.Exception
protected void handleOption(java.lang.String token, java.util.List tokens) throws java.lang.Exception
handleOption
in class AbstractAmqCommand
token
- - option token to handletokens
- - succeeding command argumentsjava.lang.Exception
protected void printHelp()
printHelp
in class AbstractCommand
Copyright © 2005-2017. All Rights Reserved.