|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DeployTool interface provides methods for deploying, redeploying and undeploying of the WSO2 SOA Enablement Server deployment packages. Also it provides methods for listing of the deployed packages and obtaining the particular deployment package as a Java archive file (JAR). See the WSO2 SOA Enablement Server documentation to see the structure of the deployment package. The deployment packages can be created by the WaspPackager tool and also the WaspPackager ANT task.
Method Summary | |
Package |
deploy(java.io.InputStream packageJar,
java.lang.String serverURL)
It deploys the deployment package to the given URL. |
Package |
deploy(java.io.InputStream packageJar,
java.lang.String serverURL,
boolean disabled)
It deploys the deployment package to the given URL. |
Package |
deploy(java.io.InputStream packageJar,
java.lang.String serverURL,
java.lang.String context)
It deploys the deployment package to the given URL. |
Package |
deploy(java.io.InputStream packageJar,
java.lang.String serverURL,
java.lang.String context,
boolean disabled)
It deploys the deployment package to the given URL. |
PackageInfo[] |
getDeployedPackages(java.lang.String serverURL)
It returns information about deployed packages on the server. |
java.util.jar.JarInputStream |
getPackageAsJar(Package pack,
java.lang.String serverURL)
It returns the given deployed package as a JarInputStream . |
Package |
redeploy(java.io.InputStream packageJar,
java.lang.String serverURL,
java.lang.String context,
boolean disabled,
boolean force)
Redeploys given package to the URL with the context. |
void |
undeploy(java.lang.String serverURL,
Package pack)
It undeploys the given deployed package from the server with the given URL. |
void |
undeploy(java.lang.String serverURL,
Package pack,
boolean force)
It undeploys the given deployed package from the server with the given URL. |
Method Detail |
public Package deploy(java.io.InputStream packageJar, java.lang.String serverURL) throws DeployException
packageJar
- InputStream of the package jar fileserverURL
- URL of the server (e.g. "http://localhost:6060")
DeployException
- when error during deployment occurespublic Package deploy(java.io.InputStream packageJar, java.lang.String serverURL, java.lang.String context) throws DeployException
packageJar
- InputStream of the package jar fileserverURL
- URL of the server (e.g. "http://localhost:6060")context
- context that will be appended to the URL
DeployException
- when error during deployment occurespublic Package deploy(java.io.InputStream packageJar, java.lang.String serverURL, boolean disabled) throws DeployException
If the value of the parameter disabled
is true
, all services
in the package will be deployed in the disabled mode.
packageJar
- InputStream of the package jar fileserverURL
- URL of the serverdisabled
- deploy all services in the deployment package in the disabled mode
DeployException
- When error during deployment occurespublic Package deploy(java.io.InputStream packageJar, java.lang.String serverURL, java.lang.String context, boolean disabled) throws DeployException
disabled
is true
, all services in the
package will be deployed in the disabled mode.
packageJar
- InputStream of the package jar fileserverURL
- URL of the server (e.g. "http://localhost:6060")context
- context that will be appended to the URLdisabled
- deploy all services in the deployment package in the disabled mode
DeployException
- When error during deployment occurespublic void undeploy(java.lang.String serverURL, Package pack) throws DeployException
DeployException
is thrown.
serverURL
- URL of the server (e.g. "http://localhost:6060")pack
- deployment package identifier (it collects the target namespace of the package,
package name and the context of the deployed package
DeployException
- if error during undeployment occures. (e.g. at least one other package
depends on the package to be undeployedpublic void undeploy(java.lang.String serverURL, Package pack, boolean force) throws DeployException
force
parameter is true
, the package will be
undeployed even though there could exist other deployment package which depends on
the given package.
serverURL
- URL of the server (e.g. "http://localhost:6060")pack
- deployment package identifier (it collects the targer namespace of the package,
package name and the context of the deployed package.force
- if the value of the parameter is true
the package will be
undeployed even though there could exist other deployment package which
depends on the given package
DeployException
- If error during undeployment occures. (e.g. at least one other package
depends on the package to be undeployed and the value
of parameter force
is false/pre>
public PackageInfo[] getDeployedPackages(java.lang.String serverURL) throws DeployException
serverURL
- URL of the server (e.g. "http://localhost:6060")
PackageInfo
which gives you details about deployed packages.
DeployException
- When error during operation occures.public java.util.jar.JarInputStream getPackageAsJar(Package pack, java.lang.String serverURL) throws DeployException
JarInputStream
.
pack
- deployment package identifier (it collects the target namespace of the package,
package name and the context of the deployed package.serverURL
- URL of the server (e.g. "http://localhost:6060")
DeployException
- if error during operation occurespublic Package redeploy(java.io.InputStream packageJar, java.lang.String serverURL, java.lang.String context, boolean disabled, boolean force) throws DeployException
force
has the same meaning in the undeployment
phase like in the method undeploy(java.lang.String, org.systinet.wasp.admin.Package)
.
packageJar
- InputStream of the package jar file.serverURL
- URL of the server (e.g. "http://localhost:6060")context
- context that will be appended to the URL.disabled
- deploy all services in the deployment package in the disabled modeforce
- If the value of the parameter is true
the package will be
undeployed even though there could exist other deployment package which
depends on the given package.
DeployException
- if error during deployment occures
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |