org.apache.catalina.ant.jmx
public class JMXAccessorGetTask extends JMXAccessorTask
Examples:
Get a Mbean IDataSender attribute nrOfRequests and create a new ant property IDataSender.9025.nrOfRequests
<jmx:get
ref="jmx.server"
name="Catalina:type=IDataSender,host=localhost,senderAddress=192.168.1.2,senderPort=9025"
attribute="nrOfRequests"
resultproperty="IDataSender.9025.nrOfRequests"
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>. |
| String | jmxExecute(MBeanServerConnection jmxServerConnection)
Execute the specified command, based on the configured properties. |
| protected String | jmxGet(MBeanServerConnection jmxServerConnection, String name) |
| void | setAttribute(String attribute) |
Returns: Returns the attribute.
<description>/<version>.Throws: BuildException if an error occurs
Parameters: jmxServerConnection name
Returns: The value of the given named attribute
Throws: Exception
Parameters: attribute The attribute to set.