org.gcube.common.vremanagement.deployer.impl.resources.undeployment
Interface Undeployable

All Known Implementing Classes:
UndeployableApplicationPackage, UndeployableLibraryPackage, UndeployableMainPackage, UndeployablePackage, UndeployablePlatformApplication, UndeployablePluginPackage

public interface Undeployable

Interface for undeployable packages

Author:
Manuele Simi (ISTI-CNR)

Method Summary
 void postUndeploy()
          Performs the post-undeployment operations
 void preUndeploy()
          Performs the pre-undeployment operations
 boolean requireRestart()
          States if after the undeployment, it is required to restart the container
 void undeploy(Set<org.gcube.common.core.scope.GCUBEScope> scopes, boolean cleanState)
          Undeploys the package from the scopes
 boolean verify()
          Verifies if the package has been correctly undeployed
 

Method Detail

undeploy

void undeploy(Set<org.gcube.common.core.scope.GCUBEScope> scopes,
              boolean cleanState)
              throws DeployException,
                     InvalidPackageArchiveException
Undeploys the package from the scopes

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

boolean verify()
               throws InvalidPackageArchiveException
Verifies if the package has been correctly undeployed

Returns:
true if the packages has been correctly undeployed, false otherwise
Throws:
InvalidPackageArchiveException - if the package cannot be verified

requireRestart

boolean requireRestart()
States if after the undeployment, it is required to restart the container

Returns:
true if the container needs to be restarted, false otherwise

postUndeploy

void postUndeploy()
                  throws InvalidPackageArchiveException,
                         DeployException
Performs the post-undeployment operations

Throws:
DeployException
InvalidPackageArchiveException

preUndeploy

void preUndeploy()
                 throws InvalidPackageArchiveException,
                        DeployException
Performs the pre-undeployment operations

Throws:
DeployException
InvalidPackageArchiveException


Copyright © 2012. All Rights Reserved.