org.gcube.common.vremanagement.deployer.impl.resources.deployment
Class DPlugin
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.DeployablePackage
org.gcube.common.vremanagement.deployer.impl.resources.deployment.DPlugin
- All Implemented Interfaces:
- Serializable, Deployable
public class DPlugin
- extends DeployablePackage
A deployable plugin
- Author:
- Manuele Simi (ISTI-CNR)
- See Also:
- Serialized Form
|
Constructor Summary |
DPlugin(org.gcube.common.core.resources.service.Plugin packageprofile,
PackageExtractor extractor)
|
|
Method Summary |
void |
deployPackage(Set<org.gcube.common.core.scope.GCUBEScope> targets)
|
protected org.gcube.common.core.resources.service.Package |
getPackageProfile()
Gets the package profile |
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.deployment.DeployablePackage |
analysePackage, clean, deploy, deployApp, getDeploymentTime, getServiceID, getServiceProfile, getSourcePackage, notifyDeployCompleted, postDeploy, preDeploy, runInstallScripts |
| 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, getTargetPlatform, getTargetsToAdd, getUninstallScripts, notifiyTargetsAdded, printFiles, removeFileFromPackage, removeScope, removeScopes, setProperty, setScopes, setScopesToAdd, setTargetPlatform, setTargetsToAdd, toString |
baseTargetDir
protected String baseTargetDir
packageprofile
protected transient org.gcube.common.core.resources.service.Plugin packageprofile
DPlugin
public DPlugin(org.gcube.common.core.resources.service.Plugin packageprofile,
PackageExtractor extractor)
throws Exception
- Parameters:
packageprofile - downloader -
- Throws:
Exception
deployPackage
public void deployPackage(Set<org.gcube.common.core.scope.GCUBEScope> targets)
throws DeployException,
InvalidPackageArchiveException
-
- Specified by:
deployPackage in class DeployablePackage
- Throws:
DeployException
InvalidPackageArchiveException
getPackageProfile
protected org.gcube.common.core.resources.service.Package getPackageProfile()
- Gets the package profile
- Specified by:
getPackageProfile in class DeployablePackage
- Returns:
- the package profile
requireRestart
public boolean requireRestart()
- States if after the deployment, it is required to restart the container
- Returns:
- true if the container needs to be restarted, false otherwise
verify
public boolean verify()
throws InvalidPackageArchiveException
- Verifies if the package has been correctly deployed
- Returns:
- true if the packages has been correctly deployed, false otherwise
- Throws:
InvalidPackageArchiveException - if the package cannot be verified
Copyright © 2013. All Rights Reserved.