public interface DeploymentUtility
Modifier and Type | Interface and Description |
---|---|
static class |
DeploymentUtility.Builder
This class is used to build the deployment utility.
|
Modifier and Type | Method and Description |
---|---|
void |
deploy(java.util.List<PackageDetails> packages,
long timeout)
Deploys the given list of caps to all the nodes in the cluster.
|
PackageStatusDetails |
getPackageStatus(java.lang.String packageName)
Provides the api to get the status of the package on all the nodes.
|
boolean |
isPackageDeployed(java.lang.String packageName)
Checks if the given package is deployed.
|
void |
undeploy(java.util.List<PackageDetails> packages,
long timeout)
Undeploys the given list of caps to all the nodes in the cluster.
|
void |
updateSecuritySettings(boolean allowUnSigned,
boolean allowTampered,
boolean allowcertificateNotTrusted,
boolean allowInvalidKeyUsage)
Modifies the security settings.
|
PackageInfo |
upload(java.lang.String packageName,
java.io.InputStream inputStream)
Uploads the cap file to the file system to make it available for the deployment.
|
void updateSecuritySettings(boolean allowUnSigned, boolean allowTampered, boolean allowcertificateNotTrusted, boolean allowInvalidKeyUsage)
allowUnSigned
- boolean to allow deployment of unsigned capsallowTampered
- boolean to allow deployment of tampered capsallowcertificateNotTrusted
- boolean to allow deployment of caps signed with untrusted certificateallowInvalidKeyUsage
- boolean to allow deployment of caps signed with invalid keyPackageInfo upload(java.lang.String packageName, java.io.InputStream inputStream)
packageName
- name of the cap to be uploadedinputStream
- input stream of the cap filevoid deploy(java.util.List<PackageDetails> packages, long timeout)
packages
- list of packages to be deployed.timeout
- the maximum time in milliseconds to wait for a cap deployment to finish.void undeploy(java.util.List<PackageDetails> packages, long timeout)
packages
- list of packages to be undeployed.timeout
- the maximum time in milliseconds to wait for a cap undeployment to finish.boolean isPackageDeployed(java.lang.String packageName)
packageName
- the name of the package to check the status.PackageStatusDetails getPackageStatus(java.lang.String packageName)
packageName
- the name of the package to check the status.