org.gcube.common.vremanagement.deployer.impl.resources.deployment
Class DPlatformApplication
java.lang.Object
org.gcube.common.vremanagement.deployer.impl.resources.BasePackage
org.gcube.common.vremanagement.deployer.impl.resources.BaseTypedPackage
org.gcube.common.vremanagement.deployer.impl.resources.deployment.DeployablePackage
org.gcube.common.vremanagement.deployer.impl.resources.deployment.DPlatformApplication
- All Implemented Interfaces:
- Serializable, Deployable
public class DPlatformApplication
- extends DeployablePackage
An application to deploy on a virtual platform
- Author:
- Manuele Simi (ISTI-CNR)
- See Also:
- Serialized Form
|
Method Summary |
String |
deployApp(Set<org.gcube.common.core.scope.GCUBEScope> targets)
Deploys the package as an application |
void |
deployPackage(Set<org.gcube.common.core.scope.GCUBEScope> targets)
|
org.gcube.common.core.resources.service.Package |
getPackageProfile()
Gets the package profile |
boolean |
requireRestart()
States if after the deployment, it is required to restart the container |
boolean |
verify()
Verifies if the package has been correctly deployed |
| Methods inherited from class org.gcube.common.vremanagement.deployer.impl.resources.deployment.DeployablePackage |
analysePackage, clean, deploy, getDeploymentTime, getServiceID, getServiceProfile, getSourcePackage, notifyDeployCompleted, postDeploy, preDeploy, runInstallScripts |
| 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 |
packageprofile
protected transient org.gcube.common.core.resources.service.Software packageprofile
riid
protected transient String riid
verify
public boolean verify()
throws InvalidPackageArchiveException
- Description copied from interface:
Deployable
- Verifies if the package has been correctly deployed
- Returns:
- true if the packages has been correctly deployed, false otherwise
- Throws:
InvalidPackageArchiveException - if the package cannot be verified
requireRestart
public boolean requireRestart()
- Description copied from interface:
Deployable
- States if after the deployment, it is required to restart the container
- Returns:
- true if the container needs to be restarted, false otherwise
deployPackage
public void deployPackage(Set<org.gcube.common.core.scope.GCUBEScope> targets)
throws DeployException,
InvalidPackageArchiveException
- Specified by:
deployPackage in class DeployablePackage
- Throws:
DeployException
InvalidPackageArchiveException
getPackageProfile
public org.gcube.common.core.resources.service.Package getPackageProfile()
- Description copied from class:
DeployablePackage
- Gets the package profile
- Specified by:
getPackageProfile in class DeployablePackage
- Returns:
- the package profile
deployApp
public String deployApp(Set<org.gcube.common.core.scope.GCUBEScope> targets)
throws PackageAldreadyDeployedException,
DeployException,
InvalidPackageArchiveException
- Description copied from interface:
Deployable
- Deploys the package as an application
- Specified by:
deployApp in interface Deployable- Overrides:
deployApp in class DeployablePackage
- Parameters:
targets - target scopes
- Returns:
-
- Throws:
PackageAldreadyDeployedException
DeployException
InvalidPackageArchiveException
Copyright © 2013. All Rights Reserved.