org.gcube.common.vremanagement.deployer.impl.resources.undeployment
Class UndeployablePluginPackage
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.undeployment.UndeployablePackage
org.gcube.common.vremanagement.deployer.impl.resources.undeployment.UndeployablePluginPackage
- All Implemented Interfaces:
- Serializable, Undeployable
public class UndeployablePluginPackage
- extends UndeployablePackage
Undeployable Plugin Package
- Author:
- Manuele Simi (ISTI-CNR)
- See Also:
- Serialized Form
|
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 |
UndeployablePluginPackage
public UndeployablePluginPackage(BaseTypedPackage base)
- Creates a new
UndeployablePluginPackage starting from BaseTypedPackage
- Parameters:
base - the starting package
packageUndeploy
protected 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 undeployedcleanState - states if the package's state must be also removed after undeployment
- Throws:
DeployException
InvalidPackageArchiveException
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
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
Copyright © 2012. All Rights Reserved.