|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.vremanagement.deployer.impl.resources.BasePackage
org.gcube.common.vremanagement.deployer.impl.resources.BaseTypedPackage
org.gcube.common.vremanagement.deployer.impl.resources.deployment.DeployablePackage
public abstract class DeployablePackage
Base deployable package
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.gcube.common.vremanagement.deployer.impl.resources.BaseTypedPackage |
|---|
BaseTypedPackage.TYPE |
| Field Summary | |
|---|---|
protected Calendar |
deploymentTime
scopes to add after the next restart |
protected PackageExtractor |
extractor
The extractor managing the package |
protected AntRunner |
run
Local Ant runner |
protected String |
serviceID
the service identifier to which the package belongs to |
protected org.gcube.common.core.resources.GCUBEService |
serviceprofile
service profile extracted from the deployable package |
| Fields inherited from class org.gcube.common.vremanagement.deployer.impl.resources.BasePackage |
|---|
dependencies, installScripts, key, logger, packageFiles, properties, rebootScripts, targetsToAdd, uninstallScripts |
| Method Summary | |
|---|---|
protected void |
analysePackage()
|
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 |
abstract void |
deployPackage(Set<org.gcube.common.core.scope.GCUBEScope> targets)
|
Calendar |
getDeploymentTime()
|
protected abstract org.gcube.common.core.resources.service.Package |
getPackageProfile()
Gets the package profile |
String |
getServiceID()
|
org.gcube.common.core.resources.GCUBEService |
getServiceProfile()
Gets the service profile |
BaseTypedPackage |
getSourcePackage()
|
protected void |
notifyDeployCompleted()
Does the latest stuffs and cleanup after a successful deployment |
void |
postDeploy()
Performs the post-deployment operations |
void |
preDeploy()
Performs the pre-deployment operations |
protected void |
runInstallScripts()
Executes the installation scripts for the package |
| Methods inherited from class org.gcube.common.vremanagement.deployer.impl.resources.BaseTypedPackage |
|---|
getType, setType |
| Methods inherited from class org.gcube.common.vremanagement.deployer.impl.resources.BasePackage |
|---|
addDependencies, 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, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.gcube.common.vremanagement.deployer.impl.resources.deployment.Deployable |
|---|
getTargetPlatform, getTargetsToAdd, notifiyTargetsAdded, requireRestart, setTargetsToAdd, verify |
| Field Detail |
|---|
protected transient PackageExtractor extractor
protected transient AntRunner run
protected transient org.gcube.common.core.resources.GCUBEService serviceprofile
protected String serviceID
protected Calendar deploymentTime
| Method Detail |
|---|
protected final void analysePackage()
public final void deploy(Set<org.gcube.common.core.scope.GCUBEScope> targets)
throws PackageAldreadyDeployedException,
DeployException,
InvalidPackageArchiveException
Deployable
deploy in interface DeployablePackageAldreadyDeployedException - if the package is already deployed in the node
DeployException - if something fails during the deployment activities
InvalidPackageArchiveException - if the format of the downloaded package is not valid
public abstract void deployPackage(Set<org.gcube.common.core.scope.GCUBEScope> targets)
throws PackageAldreadyDeployedException,
DeployException,
InvalidPackageArchiveException
PackageAldreadyDeployedException
DeployException
InvalidPackageArchiveExceptionprotected abstract org.gcube.common.core.resources.service.Package getPackageProfile()
public org.gcube.common.core.resources.GCUBEService getServiceProfile()
protected void runInstallScripts()
throws DeployException,
InvalidPackageArchiveException
DeployException - if an error occurs during the execution of one of the given scripts
InvalidPackageArchiveException - if the format of the downloaded package is not valid
public final void clean()
throws DeployException
Deployable
clean in interface DeployableDeployException
public void preDeploy()
throws InvalidPackageArchiveException,
DeployException
Deployable
preDeploy in interface DeployableInvalidPackageArchiveException
DeployException
public void postDeploy()
throws InvalidPackageArchiveException,
DeployException
Deployable
postDeploy in interface DeployableDeployException
InvalidPackageArchiveExceptionpublic String getServiceID()
public final Calendar getDeploymentTime()
protected final void notifyDeployCompleted()
public String deployApp(Set<org.gcube.common.core.scope.GCUBEScope> targets)
throws PackageAldreadyDeployedException,
DeployException,
InvalidPackageArchiveException
Deployable
deployApp in interface Deployabletargets - target scopes
PackageAldreadyDeployedException
DeployException
InvalidPackageArchiveExceptionpublic BaseTypedPackage getSourcePackage()
getSourcePackage in interface Deployable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||