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.Task
This task establishes a connection to a SIP Servlet RA entity. Connections are saved in memory for use by subsequentSipServletTasks
in the same Ant build (same JVM instance). Therefore this task must be executed before anySipServletTasks
.Subsequent
SipServletTasks
in the build will reuse the last successful connection. Alternatively these tasks can specify a connection using theirconnectionrefid
attribute, which must match theid
attribute of a previousconnect
task.The
host
,port
,username
andpassword
parameters can be set automatically from Ant properties, see the table below. Theraentity
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"/>
-
-
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
-
-
-
-
Method Detail
-
execute
public void execute()
- Overrides:
execute
in 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)
-
-