public class QueryCommand extends AbstractJmxCommand
Modifier and Type | Field and Description |
---|---|
protected String[] |
helpFile |
DEFAULT_JMX_URL
COMMAND_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, useJmxServiceUrl
handleException, parseOptions, printHelpFromFile, setCommandContext
public QueryCommand()
public String getOneLineDescription()
protected void runTask(List<String> tokens) throws Exception
runTask
in class AbstractCommand
tokens
- - command argumentsException
protected void handleOption(String token, List<String> tokens) throws Exception
handleOption
in class AbstractJmxCommand
token
- - option token to handletokens
- - succeeding command argumentsException
protected void printHelp()
printHelp
in class AbstractCommand
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.