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
public class BrowseCommand extends AbstractJmxCommand
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]
helpFile
static String
QUEUE_PREFIX
static String
TOPIC_PREFIX
static String
VIEW_GROUP_BODY
static String
VIEW_GROUP_CUSTOM
static String
VIEW_GROUP_HEADER
-
Fields inherited from class org.apache.activemq.console.command.AbstractJmxCommand
DEFAULT_JMX_URL
-
Fields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER, context
-
-
Constructor Summary
Constructors Constructor Description BrowseCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
String
getOneLineDescription()
protected void
handleOption(String token, List<String> tokens)
Handle the --msgsel, --xmsgsel, --view, -V options.protected void
printHelp()
Print the help messages for the browse commandprotected void
runTask(List<String> tokens)
Execute the browse command, which allows you to browse the messages in a given JMS destination-
Methods inherited from class org.apache.activemq.console.command.AbstractJmxCommand
closeJmxConnection, createJmxConnection, execute, findJMXUrlByProcessId, getJmxPassword, getJmxServiceUrl, getJmxUser, getJVM, isJmxUseLocal, isSunJVM, setJmxPassword, setJmxServiceUrl, setJmxServiceUrl, setJmxUseLocal, setJmxUser, useJmxServiceUrl
-
Methods inherited from class org.apache.activemq.console.command.AbstractCommand
handleException, parseOptions, printHelpFromFile, setCommandContext
-
-
-
-
Field Detail
-
QUEUE_PREFIX
public static final String QUEUE_PREFIX
- See Also:
- Constant Field Values
-
TOPIC_PREFIX
public static final String TOPIC_PREFIX
- See Also:
- Constant Field Values
-
VIEW_GROUP_HEADER
public static final String VIEW_GROUP_HEADER
- See Also:
- Constant Field Values
-
VIEW_GROUP_CUSTOM
public static final String VIEW_GROUP_CUSTOM
- See Also:
- Constant Field Values
-
VIEW_GROUP_BODY
public static final String VIEW_GROUP_BODY
- See Also:
- Constant Field Values
-
helpFile
protected String[] helpFile
-
-
Method Detail
-
getName
public String getName()
-
getOneLineDescription
public String getOneLineDescription()
-
runTask
protected void runTask(List<String> tokens) throws Exception
Execute the browse command, which allows you to browse the messages in a given JMS destination- Specified by:
runTask
in classAbstractCommand
- Parameters:
tokens
- - command arguments- Throws:
Exception
-
handleOption
protected void handleOption(String token, List<String> tokens) throws Exception
Handle the --msgsel, --xmsgsel, --view, -V options.- Overrides:
handleOption
in 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:
printHelp
in classAbstractCommand
-
-