public class InstallTask extends SipServletTask
DeploymentMXBean.install(String, byte[], String, com.opencloud.sipservlet.management.SipServletServiceID)
management operation.
Attribute | Description | Required |
connectionrefid | The id of a previous connect task that will be used to connect
to a SIP Servlet RA entity. |
No. The connection from the last successful
connect task is used by default. |
failonerror | Default failure case behaviour for this task. If set to 'false' or 'no', the build will continue when this task attempts a redundant action. | No. Default is false . |
url | URL that will identify the servlet application's deployable unit in the SLEE. | Not required if srcfile is specified. |
srcfile | Path to sip servlets sar application archive. | Not required if url is specified. |
appname | Override the servlet application name specified in the SAR's sip.xml . |
No. |
linkname | Override the default link name, to bind the application to a different SIP Servlet RA entity. | No. |
prefix | If set, this prefix will be used to create Ant properties for the deployed application
name and ServiceID , if deployment succeeds. The properties created are:
|
No. |
Element | Description | Required |
service |
. | No, the container will generate a ServiceID based on the application name. |
The location of the SAR file to read, and the URL to associate with it when passing it to Rhino is determined as follows:
srcfile
and url
parameters are specified, the SAR file is read from the file
indicated by srcfile
and the URL used is that specified by url
.srcfile
is specified then the JAR file is read from this file and the filename is also used
to construct a URL.url
is specified then the JAR file is read from this location and deployed using the specified URL. <install srcfile="${jars}/proxy.sar"/>
Constructor and Description |
---|
InstallTask() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredService(ServiceComponentElement service) |
protected void |
execute(SipServletClient client) |
void |
setAppName(java.lang.String appName) |
void |
setLinkName(java.lang.String linkName) |
void |
setPrefix(java.lang.String prefix) |
void |
setSrcfile(java.io.File srcFile) |
void |
setUrl(java.lang.String url) |
protected void |
validateParameters() |
debug, debug, error, error, execute, fatal, fatal, fatal, getFailOnError, getSipServletClient, info, info, nonFatal, nonFatal, nonFatal, setConnectionRefId, setFailOnError, toByteArray, toString, verbose, verbose, warn, warn
public void setSrcfile(java.io.File srcFile)
public void setUrl(java.lang.String url)
public void setAppName(java.lang.String appName)
public void setLinkName(java.lang.String linkName)
public void setPrefix(java.lang.String prefix)
public void addConfiguredService(ServiceComponentElement service)
protected void validateParameters()
validateParameters
in class SipServletTask
protected void execute(SipServletClient client)
execute
in class SipServletTask