Home » apache-tomcat-6.0.26-src » org.apache » catalina » ant » jmx » [javadoc | source]
org.apache.catalina.ant.jmx
public class: JMXAccessorEqualsCondition [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.catalina.ant.jmx.JMXAccessorEqualsCondition

All Implemented Interfaces:
    Condition, Cloneable

Definition
 
  <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>

Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Method from org.apache.catalina.ant.jmx.JMXAccessorEqualsCondition Summary:
accessJMXValue,   eval,   getAttribute,   getHost,   getInfo,   getJMXConnection,   getName,   getPassword,   getPort,   getRef,   getUrl,   getUsername,   getValue,   setAttribute,   setHost,   setName,   setPassword,   setPort,   setRef,   setUrl,   setUsername,   setValue
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.ant.jmx.JMXAccessorEqualsCondition Detail:
 protected String accessJMXValue() 
 public boolean eval() 
 public String getAttribute() 
 public String getHost() 
 public String getInfo() 
    Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version>.
 protected MBeanServerConnection getJMXConnection() throws MalformedURLException, IOException 
 public String getName() 
 public String getPassword() 
 public String getPort() 
 public String getRef() 
 public String getUrl() 
 public String getUsername() 
 public String getValue() 
 public  void setAttribute(String attribute) 
 public  void setHost(String host) 
 public  void setName(String objectName) 
 public  void setPassword(String password) 
 public  void setPort(String port) 
 public  void setRef(String refId) 
 public  void setUrl(String url) 
 public  void setUsername(String username) 
 public  void setValue(String value)