FileDocCategorySizeDatePackage
JMXGetTask.javaAPI DocApache Tomcat 6.0.142634Fri Jul 20 04:20:32 BST 2007org.apache.catalina.ant

JMXGetTask

public class JMXGetTask extends AbstractCatalinaTask
Ant task that implements the JMX Get command (/jmxproxy/?get) supported by the Tomcat manager application.
author
Peter Rossbach
version
$Revision: 467222 $

Fields Summary
protected String
bean
The full bean name
protected String
attribute
The attribute you wish to alter
Constructors Summary
Methods Summary
public voidexecute()
Execute the requested operation.

exception
BuildException if an error occurs

        super.execute();
        if (bean == null || attribute == null) {
            throw new BuildException
                ("Must specify 'bean' and 'attribute' attributes");
        }
        log("Getting attribute " + attribute +
                " in bean " + bean ); 
        execute("/jmxproxy/?get=" + bean 
                + "&att=" + attribute );
    
public java.lang.StringgetAttribute()
Get method for the attribute name

return
Attribute name

        return this.attribute;
    
public java.lang.StringgetBean()
Get method for the bean name

return
Bean name


    // Public Methods
    
                  
        
        return this.bean;
    
public voidsetAttribute(java.lang.String attribute)
Set method for the attribute name

param
attribute Attribute name

        this.attribute = attribute;
    
public voidsetBean(java.lang.String bean)
Set method for the bean name

param
bean Bean name

        this.bean = bean;