org.apache.activemq.console.command
Class QueryCommand

java.lang.Object
  extended by org.apache.activemq.console.command.AbstractCommand
      extended by org.apache.activemq.console.command.AbstractJmxCommand
          extended by org.apache.activemq.console.command.QueryCommand
All Implemented Interfaces:
Command

public class QueryCommand
extends AbstractJmxCommand


Field Summary
protected  java.lang.String[] helpFile
           
 
Fields inherited from class org.apache.activemq.console.command.AbstractJmxCommand
DEFAULT_JMX_URL
 
Fields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER
 
Constructor Summary
QueryCommand()
           
 
Method Summary
protected  void handleOption(java.lang.String token, java.util.List 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 tokens)
          Queries the mbeans registered in the specified JMX context
 
Methods inherited from class org.apache.activemq.console.command.AbstractJmxCommand
closeJmxConnector, createJmxConnector, getJmxServiceUrl, setJmxServiceUrl, setJmxServiceUrl, useJmxServiceUrl
 
Methods inherited from class org.apache.activemq.console.command.AbstractCommand
execute, parseOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

helpFile

protected java.lang.String[] helpFile
Constructor Detail

QueryCommand

public QueryCommand()
Method Detail

runTask

protected void runTask(java.util.List tokens)
                throws java.lang.Exception
Queries the mbeans registered in the specified JMX context

Specified by:
runTask in class AbstractCommand
Parameters:
tokens - - command arguments
Throws:
java.lang.Exception

handleOption

protected void handleOption(java.lang.String token,
                            java.util.List tokens)
                     throws java.lang.Exception
Handle the -Q, -xQ, --objname, --xobjname, --view options.

Overrides:
handleOption in class AbstractJmxCommand
Parameters:
token - - option token to handle
tokens - - succeeding command arguments
Throws:
java.lang.Exception

printHelp

protected void printHelp()
Print the help messages for the browse command

Specified by:
printHelp in class AbstractCommand


Copyright © 2009 Apache Software Foundation. All Rights Reserved.