public class QueryCommand extends AbstractJmxCommand
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
helpFile |
DEFAULT_JMX_URLCOMMAND_OPTION_DELIMETER, context| Constructor and Description |
|---|
QueryCommand() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getOneLineDescription() |
protected void |
handleOption(String token,
List<String> tokens)
Handle the -Q, -xQ, --objname, --xobjname, --view --invoke options.
|
protected void |
printHelp()
Print the help messages for the browse command
|
protected void |
runTask(List<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, printHelpFromFile, setCommandContextpublic QueryCommand()
public String getOneLineDescription()
protected void runTask(List<String> tokens) throws Exception
runTask in class AbstractCommandtokens - - command argumentsExceptionprotected void handleOption(String token, List<String> tokens) throws Exception
handleOption in class AbstractJmxCommandtoken - - option token to handletokens - - succeeding command argumentsExceptionprotected void printHelp()
printHelp in class AbstractCommandCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.