Class JMXGetTask

  • All Implemented Interfaces:
    Cloneable

    public class JMXGetTask
    extends AbstractCatalinaTask
    Ant task that implements the JMX Get command (/jmxproxy/?get) supported by the Tomcat manager application.
    Author:
    Peter Rossbach
    • Field Detail

      • bean

        protected String bean
        The full bean name
      • attribute

        protected String attribute
        The attribute you wish to alter
    • Constructor Detail

      • JMXGetTask

        public JMXGetTask()
    • Method Detail

      • getBean

        public String getBean()
        Get method for the bean name
        Returns:
        Bean name
      • setBean

        public void setBean​(String bean)
        Set method for the bean name
        Parameters:
        bean - Bean name
      • getAttribute

        public String getAttribute()
        Get method for the attribute name
        Returns:
        Attribute name
      • setAttribute

        public void setAttribute​(String attribute)
        Set method for the attribute name
        Parameters:
        attribute - Attribute name
      • 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