Class JMXSetTask

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

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

        protected java.lang.String value
        The new value for the attribute
    • Constructor Detail

      • JMXSetTask

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

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

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