Class JMXSetTask

  • All Implemented Interfaces:
    Cloneable

    public class JMXSetTask
    extends AbstractCatalinaTask
    Ant task that implements the JMX Set command (/jmxproxy/?set) supported by the Tomcat manager application.
    Author:
    Vivek Chopra
    • Field Detail

      • bean

        protected String bean
        The full bean name
      • attribute

        protected String attribute
        The attribute you wish to alter
      • value

        protected String value
        The new value for the attribute
    • Constructor Detail

      • JMXSetTask

        public JMXSetTask()
    • 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
      • getValue

        public String getValue()
        Get method for the attribute value
        Returns:
        Attribute value
      • setValue

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