Class ConnectTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- com.opencloud.sipservlet.client.ant.ConnectTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ConnectTask extends org.apache.tools.ant.TaskThis task establishes a connection to a SIP Servlet RA entity. Connections are saved in memory for use by subsequentSipServletTasksin the same Ant build (same JVM instance). Therefore this task must be executed before anySipServletTasks.Subsequent
SipServletTasksin the build will reuse the last successful connection. Alternatively these tasks can specify a connection using theirconnectionrefidattribute, which must match theidattribute of a previousconnecttask.The
host,port,usernameandpasswordparameters can be set automatically from Ant properties, see the table below. Theraentityparameter 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 SipServletTaskscan 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"/>
-
-
Constructor Summary
Constructors Constructor Description ConnectTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()voidsetHost(java.lang.String host)voidsetId(java.lang.String id)voidsetPassword(java.lang.String password)voidsetPort(int port)voidsetRaentity(java.lang.String ra)voidsetUsername(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
-
-
-
-
Method Detail
-
execute
public void execute()
- Overrides:
executein classorg.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)
-
-