Class ConnectTask

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class ConnectTask
    extends org.apache.tools.ant.Task
    This task establishes a connection to a SIP Servlet RA entity. Connections are saved in memory for use by subsequent SipServletTasks in the same Ant build (same JVM instance). Therefore this task must be executed before any SipServletTasks.

    Subsequent SipServletTasks in the build will reuse the last successful connection. Alternatively these tasks can specify a connection using their connectionrefid attribute, which must match the id attribute of a previous connect task.

    The host, port, username and password parameters can be set automatically from Ant properties, see the table below. The raentity parameter is required, so that a connection is established to a SIP Servlet RA entity MBean.

    Ant Parameters

    Attribute Description Required
    raentity Name of the SIP Servlet RA entity to connect to. Yes.
    id A reference that SipServletTasks can use to refer to this connection. No.
    host Hostname or IP address of Rhino node No, may be omitted if ${rhino.remote.host} property is defined.
    port Port for the RMI management interface. No, may be omitted if ${rhino.remote.port} property is defined.
    username User for the RMI management interface. No, ay be omitted if ${rhino.remote.user} property is defined.
    password Password for the RMI management interface. No, may be omitted if ${rhino.remote.password} property is defined.

    Example

    <connect raentity="ss-1"/>
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.Task

        target, taskName, taskType, wrapper
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        description, location, project
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      void setHost​(java.lang.String host)  
      void setId​(java.lang.String id)  
      void setPassword​(java.lang.String password)  
      void setPort​(int port)  
      void setRaentity​(java.lang.String ra)  
      void setUsername​(java.lang.String username)  
      • Methods inherited from class org.apache.tools.ant.Task

        bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectTask

        public ConnectTask()
    • Method Detail

      • execute

        public void execute()
        Overrides:
        execute in class org.apache.tools.ant.Task
      • setId

        public void setId​(java.lang.String id)
      • setHost

        public void setHost​(java.lang.String host)
      • setPort

        public void setPort​(int port)
      • setUsername

        public void setUsername​(java.lang.String username)
      • setPassword

        public void setPassword​(java.lang.String password)
      • setRaentity

        public void setRaentity​(java.lang.String ra)