Class JMXQueryTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
All Implemented Interfaces:
Cloneable

public class JMXQueryTask extends AbstractCatalinaTask
Ant task that implements the JMX Query command (/jmxproxy/?qry) supported by the Tomcat manager application.
Author:
Vivek Chopra
  • Field Details

  • Constructor Details

    • JMXQueryTask

      public JMXQueryTask()
  • Method Details

    • getQuery

      public String getQuery()
      Get method for the JMX query string
      Returns:
      Query string
    • setQuery

      public void setQuery(String query)
      Set method for the JMX query string.

      Examples of query format:

      • *:*
      • *:type=RequestProcessor,*
      • *:j2eeType=Servlet,*
      • Catalina:type=Environment,resourcetype=Global,name=simpleValue
      Parameters:
      query - JMX Query string
    • execute

      public void execute() throws org.apache.tools.ant.BuildException
      Execute the requested operation.
      Overrides:
      execute in class AbstractCatalinaTask
      Throws:
      org.apache.tools.ant.BuildException - if an error occurs