public abstract class ExternalDeployablePackage extends BaseTypedPackage implements Deployable
BaseTypedPackage.TYPE| Modifier and Type | Field and Description |
|---|---|
protected ExternalPackageExtractor |
extractor |
protected AntRunner |
run
Local Ant runner
|
dependencies, installScripts, key, logger, packageFiles, properties, rebootScripts, targetsToAdd, uninstallScripts| 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
|
abstract void |
deployPackage(Set<org.gcube.common.core.scope.GCUBEScope> targets) |
BaseTypedPackage |
getSourcePackage() |
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
|
boolean |
verify()
Verifies if the package has been correctly deployed
|
getType, setTypeaddDependencies, addFile2Package, addInstallScript, addRebootScript, addScope, addUninstallScript, getDependencies, getInstallScripts, getKey, getPackageFileList, getProperty, getRebootScripts, getScopes, getScopesToAdd, getSerializationFile, getTargetPlatform, getTargetsToAdd, getUninstallScripts, notifiyTargetsAdded, printFiles, removeFileFromPackage, removeScope, removeScopes, setProperty, setScopes, setScopesToAdd, setTargetPlatform, setTargetsToAdd, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployApp, getTargetPlatform, getTargetsToAdd, notifiyTargetsAdded, setTargetsToAddprotected transient AntRunner run
protected transient ExternalPackageExtractor extractor
public boolean verify()
throws InvalidPackageArchiveException
Deployableverify in interface DeployableInvalidPackageArchiveException - if the package cannot be verifiedpublic void preDeploy()
throws InvalidPackageArchiveException,
DeployException
DeployablepreDeploy in interface DeployableInvalidPackageArchiveExceptionDeployExceptionpublic void postDeploy()
throws InvalidPackageArchiveException,
DeployException
DeployablepostDeploy in interface DeployableDeployExceptionInvalidPackageArchiveExceptionpublic void clean()
throws DeployException
Deployableclean in interface DeployableDeployExceptionpublic boolean requireRestart()
DeployablerequireRestart in interface Deployablepublic BaseTypedPackage getSourcePackage()
getSourcePackage in interface Deployablepublic final void deploy(Set<org.gcube.common.core.scope.GCUBEScope> targets) throws DeployException, InvalidPackageArchiveException
Deployabledeploy in interface DeployableDeployException - if something fails during the deployment activitiesInvalidPackageArchiveException - if the format of the downloaded package is not validpublic abstract void deployPackage(Set<org.gcube.common.core.scope.GCUBEScope> targets) throws DeployException, InvalidPackageArchiveException
Copyright © 2015. All Rights Reserved.