org.gcube.common.vremanagement.deployer.impl.resources.deployment
Class DPlatformApplication

java.lang.Object
  extended by org.gcube.common.vremanagement.deployer.impl.resources.BasePackage
      extended by org.gcube.common.vremanagement.deployer.impl.resources.BaseTypedPackage
          extended by org.gcube.common.vremanagement.deployer.impl.resources.deployment.DeployablePackage
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.common.vremanagement.deployer.impl.resources.BaseTypedPackage
BaseTypedPackage.TYPE
 
Field Summary
protected  org.gcube.common.core.resources.service.Software packageprofile
           
protected  String riid
           
 
Fields inherited from class org.gcube.common.vremanagement.deployer.impl.resources.deployment.DeployablePackage
deploymentTime, extractor, run, serviceID, serviceprofile
 
Fields inherited from class org.gcube.common.vremanagement.deployer.impl.resources.BasePackage
dependencies, installScripts, key, logger, packageFiles, properties, rebootScripts, targetsToAdd, uninstallScripts
 
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.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, setTargetsToAdd
 

Field Detail

packageprofile

protected transient org.gcube.common.core.resources.service.Software packageprofile

riid

protected transient String riid
Method Detail

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.