org.apache.activemq.console.command
public class QueryCommand extends AbstractJmxCommand
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
helpFile |
DEFAULT_JMX_URL
COMMAND_OPTION_DELIMETER, context
Constructor and Description |
---|
QueryCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleOption(java.lang.String token,
java.util.List<java.lang.String> tokens)
Handle the -Q, -xQ, --objname, --xobjname, --view options.
|
protected void |
printHelp()
Print the help messages for the browse command
|
protected void |
runTask(java.util.List<java.lang.String> tokens)
Queries the mbeans registered in the specified JMX context
|
closeJmxConnection, createJmxConnection, execute, findJMXUrlByProcessId, getJmxPassword, getJmxServiceUrl, getJmxUser, getJVM, isJmxUseLocal, isSunJVM, setJmxPassword, setJmxServiceUrl, setJmxServiceUrl, setJmxUseLocal, setJmxUser, useJmxServiceUrl
parseOptions, setCommandContext
protected java.lang.String[] helpFile
public QueryCommand()
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.