org.gcube.common.vremanagement.deployer.impl.resources.undeployment
Class UndeployablePlatformApplication

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.undeployment.UndeployablePackage
              extended by org.gcube.common.vremanagement.deployer.impl.resources.undeployment.UndeployablePlatformApplication
All Implemented Interfaces:
Serializable, Undeployable

public class UndeployablePlatformApplication
extends UndeployablePackage

Undeployment for application running on external 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
 
Fields inherited from class org.gcube.common.vremanagement.deployer.impl.resources.BasePackage
dependencies, installScripts, key, logger, packageFiles, properties, rebootScripts, targetsToAdd, uninstallScripts
 
Constructor Summary
UndeployablePlatformApplication(BaseTypedPackage base)
           
 
Method Summary
protected  void packageUndeploy(Set<org.gcube.common.core.scope.GCUBEScope> scopes, boolean cleanState)
          Performs package-specific undeployment actions
 boolean requireRestart()
          States if after the undeployment, it is required to restart the container
 boolean verify()
          Verifies if the package has been correctly undeployed
 
Methods inherited from class org.gcube.common.vremanagement.deployer.impl.resources.undeployment.UndeployablePackage
addDependencies, addFile2Package, addInstallScript, addRebootScript, addScope, addUninstallScript, getDependencies, getInstallScripts, getKey, getPackageFileList, getProperty, getRebootScripts, getScopes, getScopesToAdd, getSerializationFile, getTargetPlatform, getType, getUninstallScripts, postUndeploy, preUndeploy, printFiles, removeFileFromPackage, removeScope, removeScopes, setProperty, setScopes, setScopesToAdd, setTargetPlatform, setType, undeploy
 
Methods inherited from class org.gcube.common.vremanagement.deployer.impl.resources.BasePackage
getTargetsToAdd, notifiyTargetsAdded, setTargetsToAdd, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UndeployablePlatformApplication

public UndeployablePlatformApplication(BaseTypedPackage base)
Method Detail

verify

public boolean verify()
               throws InvalidPackageArchiveException
Description copied from interface: Undeployable
Verifies if the package has been correctly undeployed

Specified by:
verify in interface Undeployable
Overrides:
verify in class UndeployablePackage
Returns:
true if the packages has been correctly undeployed, false otherwise
Throws:
InvalidPackageArchiveException - if the package cannot be verified

requireRestart

public boolean requireRestart()
Description copied from interface: Undeployable
States if after the undeployment, it is required to restart the container

Specified by:
requireRestart in interface Undeployable
Overrides:
requireRestart in class UndeployablePackage
Returns:
true if the container needs to be restarted, false otherwise

packageUndeploy

protected void packageUndeploy(Set<org.gcube.common.core.scope.GCUBEScope> scopes,
                               boolean cleanState)
                        throws DeployException,
                               InvalidPackageArchiveException
Description copied from class: UndeployablePackage
Performs package-specific undeployment actions

Specified by:
packageUndeploy in class UndeployablePackage
Parameters:
scopes - scopes from which the package has to be undeployed
cleanState - states if the package's state must be also removed after undeployment
Throws:
DeployException
InvalidPackageArchiveException


Copyright © 2013. All Rights Reserved.