org.apache.catalina.ant.jmx
public class JMXAccessorEqualsCondition extends ProjectComponent implements Condition
<path id="catalina_ant"> <fileset dir="${catalina.home}/server/lib"> <include name="catalina-ant.jar"/> </fileset> </path> <typedef name="jmxEquals" classname="org.apache.catalina.ant.jmx.JMXAccessorEqualsCondition" classpathref="catalina_ant"/>usage: Wait for start backup node
<target name="wait"> <waitfor maxwait="${maxwait}" maxwaitunit="second" timeoutproperty="server.timeout" > <and> <socket server="${server.name}" port="${server.port}"/> <http url="${url}"/> <jmxEquals host="localhost" port="9014" username="controlRole" password="tomcat" name="Catalina:type=IDataSender,host=localhost,senderAddress=192.168.111.1,senderPort=9025" attribute="connected" value="true" /> </and> </waitfor> <fail if="server.timeout" message="Server ${url} don't answer inside ${maxwait} sec" /> <echo message="Server ${url} alive" /> </target>
Since: 5.5.10
Version: $Revision: 612599 $ $Date: 2008-01-16 23:37:36 +0100 (Wed, 16 Jan 2008) $
Method Summary | |
---|---|
protected String | accessJMXValue() |
boolean | eval() |
String | getAttribute() |
String | getHost() |
String | getInfo()
Return descriptive information about this implementation and the
corresponding version number, in the format
<description>/<version> . |
protected MBeanServerConnection | getJMXConnection() |
String | getName() |
String | getPassword() |
String | getPort() |
String | getRef() |
String | getUrl() |
String | getUsername() |
String | getValue() |
void | setAttribute(String attribute) |
void | setHost(String host) |
void | setName(String objectName) |
void | setPassword(String password) |
void | setPort(String port) |
void | setRef(String refId) |
void | setUrl(String url) |
void | setUsername(String username) |
void | setValue(String value) |
Returns: The value
Returns: Returns the attribute.
Returns: Returns the host.
<description>/<version>
.Returns: Returns the name.
Returns: Returns the password.
Returns: Returns the port.
Returns: Returns the ref.
Returns: Returns the url.
Returns: Returns the username.
Returns: Returns the value.
Parameters: attribute The attribute to set.
Parameters: host The host to set.
Parameters: objectName The name to set.
Parameters: password The password to set.
Parameters: port The port to set.
Parameters: refId The ref to set.
Parameters: url The url to set.
Parameters: username The username to set.