org.apache.catalina.ant

Class JMXSetTask


public class JMXSetTask
extends AbstractCatalinaTask

Ant task that implements the JMX Set command (/jmxproxy/?set) supported by the Tomcat manager application.

Version:
$Revision: 1.4 $

Author:
Vivek Chopra

Field Summary

protected String
attribute
The attribute you wish to alter
protected String
bean
The full bean name
protected String
value
The new value for the attribute

Fields inherited from class org.apache.catalina.ant.AbstractCatalinaTask

password, url, username

Method Summary

void
execute()
Execute the requested operation.
String
getAttribute()
Get method for the attribute name
String
getBean()
Get method for the bean name
String
getValue()
Get method for the attribute value
void
setAttribute(String attribute)
Set method for the attribute name
void
setBean(String bean)
Set method for the bean name
void
setValue(String value)
Set method for the attribute value.

Methods inherited from class org.apache.catalina.ant.AbstractCatalinaTask

execute, execute, execute, getPassword, getUrl, getUsername, setPassword, setUrl, setUsername

Field Details

attribute

protected String attribute
The attribute you wish to alter


bean

protected String bean
The full bean name


value

protected String value
The new value for the attribute

Method Details

execute

public void execute()
            throws BuildException
Execute the requested operation.
Overrides:
execute in interface AbstractCatalinaTask


getAttribute

public String getAttribute()
Get method for the attribute name

Returns:
Attribute name


getBean

public String getBean()
Get method for the bean name

Returns:
Bean name


getValue

public String getValue()
Get method for the attribute value

Returns:
Attribute value


setAttribute

public void setAttribute(String attribute)
Set method for the attribute name

Parameters:
attribute - Attribute name


setBean

public void setBean(String bean)
Set method for the bean name

Parameters:
bean - Bean name


setValue

public void setValue(String value)
Set method for the attribute value.

Parameters:
value - Attribute value


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.