Class JMXGetTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
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 Details

    • bean

      protected String bean
      The full bean name
    • attribute

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

    • JMXGetTask

      public JMXGetTask()
  • Method Details

    • 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