Class JMXQueryTask

  • All Implemented Interfaces:
    java.lang.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 Detail

      • query

        protected java.lang.String query
        The JMX query string
        See Also:
        setQuery(String)
    • Constructor Detail

      • JMXQueryTask

        public JMXQueryTask()
    • Method Detail

      • getQuery

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

        public void setQuery​(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
        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