public class QueryCommand extends AbstractJmxCommand
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
helpFile |
DEFAULT_JMX_URLCOMMAND_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, useJmxServiceUrlparseOptions, setCommandContextprotected java.lang.String[] helpFile
public QueryCommand()
protected void runTask(java.util.List<java.lang.String> tokens) throws java.lang.Exception
runTask in class AbstractCommandtokens - - command argumentsjava.lang.Exceptionprotected void handleOption(java.lang.String token, java.util.List<java.lang.String> tokens) throws java.lang.Exception
handleOption in class AbstractJmxCommandtoken - - option token to handletokens - - succeeding command argumentsjava.lang.Exceptionprotected void printHelp()
printHelp in class AbstractCommandCopyright © 2005-2012. All Rights Reserved.