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

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.UndeployableLibraryPackage
All Implemented Interfaces:
Serializable, Undeployable

public class UndeployableLibraryPackage
extends UndeployablePackage

Undeployable Library Package

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
UndeployableLibraryPackage(BaseTypedPackage base)
          Creates a new UndeployableLibraryPackage starting from BaseTypedPackage
 
Method Summary
 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

UndeployableLibraryPackage

public UndeployableLibraryPackage(BaseTypedPackage base)
Creates a new UndeployableLibraryPackage starting from BaseTypedPackage

Parameters:
base - the starting package
Method Detail

packageUndeploy

public void packageUndeploy(Set<org.gcube.common.core.scope.GCUBEScope> scopes,
                            boolean cleanState)
                     throws DeployException,
                            InvalidPackageArchiveException
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

verify

public boolean verify()
               throws InvalidPackageArchiveException
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()
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


Copyright © 2012. All Rights Reserved.