org.apache.activemq.console.command
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
public class QueryCommand
- extends AbstractJmxCommand
|
Method Summary |
protected void |
handleOption(String token,
List<String> tokens)
Handle the -Q, -xQ, --objname, --xobjname, --view 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
helpFile
protected String[] helpFile
QueryCommand
public QueryCommand()
runTask
protected void runTask(List<String> tokens)
throws Exception
- Queries the mbeans registered in the specified JMX context
- Specified by:
runTask in class AbstractCommand
- Parameters:
tokens - - command arguments
- Throws:
Exception
handleOption
protected void handleOption(String token,
List<String> tokens)
throws Exception
- Handle the -Q, -xQ, --objname, --xobjname, --view options.
- Overrides:
handleOption in class AbstractJmxCommand
- 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:
printHelp in class AbstractCommand
Copyright © 2008 The Apache Software Foundation. All Rights Reserved.