Class QueryCommand
java.lang.Object
org.apache.activemq.console.command.AbstractCommand
org.apache.activemq.console.command.AbstractJmxCommand
org.apache.activemq.console.command.QueryCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
BstatCommand
-
Field Summary
FieldsFields inherited from class org.apache.activemq.console.command.AbstractJmxCommand
DEFAULT_JMX_URLFields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER, context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()protected voidhandleOption(String token, List<String> tokens) Handle the -Q, -xQ, --objname, --xobjname, --view --invoke options.protected voidPrint the help messages for the browse commandprotected voidQueries the mbeans registered in the specified JMX contextMethods inherited from class org.apache.activemq.console.command.AbstractJmxCommand
closeJmxConnection, createJmxConnection, execute, findJMXUrlByProcessId, getJmxPassword, getJmxServiceUrl, getJmxUser, getJVM, isJmxUseLocal, isSunJVM, setJmxPassword, setJmxServiceUrl, setJmxServiceUrl, setJmxUseLocal, setJmxUser, useJmxServiceUrlMethods inherited from class org.apache.activemq.console.command.AbstractCommand
handleException, parseOptions, printHelpFromFile, setCommandContext
-
Field Details
-
helpFile
-
-
Constructor Details
-
QueryCommand
public QueryCommand()
-
-
Method Details
-
getName
-
getOneLineDescription
-
runTask
Queries the mbeans registered in the specified JMX context- Specified by:
runTaskin classAbstractCommand- Parameters:
tokens- - command arguments- Throws:
Exception
-
handleOption
Handle the -Q, -xQ, --objname, --xobjname, --view --invoke options.- Overrides:
handleOptionin 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:
printHelpin classAbstractCommand
-