org.apache.catalina.ant.jmx
public class JMXAccessorSetTask extends JMXAccessorTask
Examples: Set a Mbean Manager attribute maxActiveSessions. Set this attribute with fresh jmx connection without save reference
<jmx:set host="127.0.0.1" port="9014" ref="" name="Catalina:type=Manager,path="/ClusterTest",host=localhost" attribute="maxActiveSessions" value="100" type="int" echo="false"> />
First call to a remote MBeanserver save the JMXConnection a referenz jmx.server
These tasks require Ant 1.6 or later interface.Since: 5.5.10
Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Method Summary | |
---|---|
String | getAttribute() |
String | getInfo()
Return descriptive information about this implementation and the
corresponding version number, in the format
<description>/<version> . |
protected String | getMBeanAttributeType(MBeanServerConnection jmxServerConnection, String name, String attribute)
Get MBean Attriute from Mbean Server |
String | getType() |
String | getValue() |
boolean | isConvert() |
String | jmxExecute(MBeanServerConnection jmxServerConnection)
Execute the specified command, based on the configured properties. |
protected String | jmxSet(MBeanServerConnection jmxServerConnection, String name) |
void | setAttribute(String attribute) |
void | setConvert(boolean convert) |
void | setType(String valueType) |
void | setValue(String value) |
Returns: Returns the attribute.
<description>/<version>
.Parameters: jmxServerConnection name attribute
Returns: The type
Throws: Exception
Returns: Returns the type.
Returns: Returns the value.
Returns: Returns the convert.
Throws: Exception if an error occurs
Parameters: jmxServerConnection name
Throws: Exception
Parameters: attribute The attribute to set.
Parameters: convert The convert to set.
Parameters: valueType The type to set.
Parameters: value The value to set.