Class JMXGetTask

  • All Implemented Interfaces:
    java.lang.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 java.lang.String bean
        The full bean name
      • attribute

        protected java.lang.String attribute
        The attribute you wish to alter
    • Constructor Detail

      • JMXGetTask

        public JMXGetTask()
    • Method Detail

      • getBean

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

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

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

        public void setAttribute​(java.lang.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