Class JMXQueryTask

  • 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
    • Constructor Detail

      • JMXQueryTask

        public JMXQueryTask()
    • Method Detail

      • 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