public interface Deployable
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Cleans up all the temporary resources used to deploy the package
|
void |
deploy(Set<org.gcube.common.core.scope.GCUBEScope> targets)
Deploys the package
|
String |
deployApp(Set<org.gcube.common.core.scope.GCUBEScope> targets)
Deploys the package as an application
|
BaseTypedPackage |
getSourcePackage() |
org.gcube.common.core.resources.common.PlatformDescription |
getTargetPlatform() |
List<org.gcube.common.core.scope.GCUBEScope> |
getTargetsToAdd() |
void |
notifiyTargetsAdded(List<org.gcube.common.core.scope.GCUBEScope> targets) |
void |
postDeploy()
Performs the post-deployment operations
|
void |
preDeploy()
Performs the pre-deployment operations
|
boolean |
requireRestart()
States if after the deployment, it is required to restart the container
|
void |
setTargetsToAdd(List<org.gcube.common.core.scope.GCUBEScope> targetsToAdd) |
boolean |
verify()
Verifies if the package has been correctly deployed
|
void deploy(Set<org.gcube.common.core.scope.GCUBEScope> targets) throws PackageAldreadyDeployedException, DeployException, InvalidPackageArchiveException
scopes - target scopes where the package is deployedDeployException - if something fails during the deployment activitiesInvalidPackageArchiveException - if the format of the downloaded package is not validPackageAldreadyDeployedException - if the package is already deployed in the nodeboolean verify()
throws InvalidPackageArchiveException
InvalidPackageArchiveException - if the package cannot be verifiedvoid preDeploy()
throws InvalidPackageArchiveException,
DeployException
void postDeploy()
throws InvalidPackageArchiveException,
DeployException
void clean()
throws DeployException
DeployExceptionboolean requireRestart()
org.gcube.common.core.resources.common.PlatformDescription getTargetPlatform()
String deployApp(Set<org.gcube.common.core.scope.GCUBEScope> targets) throws PackageAldreadyDeployedException, DeployException, InvalidPackageArchiveException
targets - target scopesDeployExceptionInvalidPackageArchiveExceptionPackageAldreadyDeployedExceptionBaseTypedPackage getSourcePackage()
List<org.gcube.common.core.scope.GCUBEScope> getTargetsToAdd()
void setTargetsToAdd(List<org.gcube.common.core.scope.GCUBEScope> targetsToAdd)
void notifiyTargetsAdded(List<org.gcube.common.core.scope.GCUBEScope> targets)
Copyright © 2015. All Rights Reserved.