org.apache.catalina.ant.jmx
public class JMXAccessorQueryTask extends JMXAccessorTask
<jmxQuery
host="127.0.0.1"
port="9014"
name="Catalina:type=Manager,*
resultproperty="manager" />
with attribute attributebinding="true" you can get
all attributes also from result objects.Since: 5.5.10
Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
| Method Summary | |
|---|---|
| protected void | bindAttributes(MBeanServerConnection jmxServerConnection, String resultproperty, String pname, ObjectName oname) |
| String | getInfo()
Return descriptive information about this implementation and the
corresponding version number, in the format
<description>/<version>. |
| boolean | isAttributebinding() |
| String | jmxExecute(MBeanServerConnection jmxServerConnection)
Execute the specified command, based on the configured properties. |
| protected String | jmxQuery(MBeanServerConnection jmxServerConnection, String qry)
Call Mbean server for some mbeans with same domain, attributes.
with attributebindung=true you can save all attributes from all found objects
as your ant properties |
| void | setAttributebinding(boolean attributeBinding) |
Parameters: jmxServerConnection resultproperty pname oname
<description>/<version>.Returns: Returns the attributebinding.
Throws: Exception if an error occurs
Parameters: jmxServerConnection qry
Returns: The query result
Parameters: attributeBinding The attributebinding to set.