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: 467222 $

Author: Vivek Chopra

Field Summary
protected Stringattribute
The attribute you wish to alter
protected Stringbean
The full bean name
protected Stringvalue
The new value for the attribute
Method Summary
voidexecute()
Execute the requested operation.
StringgetAttribute()
Get method for the attribute name
StringgetBean()
Get method for the bean name
StringgetValue()
Get method for the attribute value
voidsetAttribute(String attribute)
Set method for the attribute name
voidsetBean(String bean)
Set method for the bean name
voidsetValue(String value)
Set method for the attribute value.

Field Detail

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 Detail

execute

public void execute()
Execute the requested operation.

Throws: BuildException if an error occurs

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 © 2000-2011 Apache Software Foundation. All Rights Reserved.