FileDocCategorySizeDatePackage
JMXQueryTask.javaAPI DocGlassfish v2 API3485Fri May 04 22:31:52 BST 2007org.apache.catalina.ant

JMXQueryTask

public class JMXQueryTask extends AbstractCatalinaTask
Ant task that implements the JMX Query command (/jmxproxy/?qry) supported by the Tomcat manager application.
author
Vivek Chopra
version
$Revision: 1.3 $

Fields Summary
protected String
query
The JMX query string
Constructors Summary
Methods Summary
public voidexecute()
Execute the requested operation.

exception
BuildException if an error occurs

        super.execute();
        String queryString = (query == null) ? "":("?qry="+query);
        log("Query string is " + queryString); 
        execute ("/jmxproxy/" + queryString);
    
public java.lang.StringgetQuery()
Get method for the JMX query string

return
Query string


    // Public Methods
    
                   
        
        return this.query;
    
public voidsetQuery(java.lang.String query)
Set method for the JMX query string.

Examples of query format:

  • *:*
  • *:type=RequestProcessor,*
  • *:j2eeType=Servlet,*
  • Catalina:type=Environment,resourcetype=Global,name=simpleValue

param
query JMX Query string

        this.query = query;