org.gcube.common.vremanagement.deployer.impl.resources.deployment
Class DExternalLibraryPackage
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.deployment.ExternalDeployablePackage
org.gcube.common.vremanagement.deployer.impl.resources.deployment.DExternalLibraryPackage
- All Implemented Interfaces:
- Serializable, Deployable
public class DExternalLibraryPackage
- extends ExternalDeployablePackage
- See Also:
- Serialized Form
|
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.common.PlatformDescription |
getTargetPlatform()
Gets the target platform of this package |
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.BasePackage |
addDependencies, addFile2Package, addInstallScript, addRebootScript, addScope, addUninstallScript, getDependencies, getInstallScripts, getKey, getPackageFileList, getProperty, getRebootScripts, getScopes, getScopesToAdd, getSerializationFile, getTargetsToAdd, getUninstallScripts, notifiyTargetsAdded, printFiles, removeFileFromPackage, removeScope, removeScopes, setProperty, setScopes, setScopesToAdd, setTargetPlatform, setTargetsToAdd, toString |
baseLibTargetDir
protected String baseLibTargetDir
verify
public boolean verify()
throws InvalidPackageArchiveException
- Description copied from interface:
Deployable
- Verifies if the package has been correctly deployed
- Specified by:
verify in interface Deployable- Overrides:
verify in class ExternalDeployablePackage
- 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
- Specified by:
requireRestart in interface Deployable- Overrides:
requireRestart in class ExternalDeployablePackage
- Returns:
- true if the container needs to be restarted, false otherwise
getTargetPlatform
public org.gcube.common.core.resources.common.PlatformDescription getTargetPlatform()
- Description copied from class:
BasePackage
- Gets the target platform of this package
- Specified by:
getTargetPlatform in interface Deployable- Overrides:
getTargetPlatform in class BasePackage
- Returns:
- the platform on which the package is supposed to run
deployApp
public String deployApp(Set<org.gcube.common.core.scope.GCUBEScope> targets)
throws DeployException,
InvalidPackageArchiveException
- Description copied from interface:
Deployable
- Deploys the package as an application
- Parameters:
targets - target scopes
- Returns:
-
- Throws:
DeployException
InvalidPackageArchiveException
deployPackage
public void deployPackage(Set<org.gcube.common.core.scope.GCUBEScope> targets)
throws DeployException,
InvalidPackageArchiveException
- Specified by:
deployPackage in class ExternalDeployablePackage
- Throws:
DeployException
InvalidPackageArchiveException
Copyright © 2012. All Rights Reserved.