public class DMainPackage extends DeployablePackage
DeployablePackage which specializes in main package deploymentBaseTypedPackage.TYPE| Modifier and Type | Field and Description |
|---|---|
protected String |
garFile |
protected String |
garID |
protected String |
garname |
protected org.gcube.common.core.resources.service.MainPackage |
packageprofile |
deploymentTime, extractor, run, serviceID, serviceprofiledependencies, installScripts, key, logger, packageFiles, properties, rebootScripts, targetsToAdd, uninstallScripts| Constructor and Description |
|---|
DMainPackage(org.gcube.common.core.resources.service.MainPackage packageprofile,
PackageExtractor extractor)
Creates a new main deployable package
|
| Modifier and Type | Method and Description |
|---|---|
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
|
analysePackage, clean, deploy, deployApp, getDeploymentTime, getServiceID, getServiceProfile, getSourcePackage, notifyDeployCompleted, postDeploy, preDeploy, runInstallScriptsgetType, setTypeaddDependencies, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTargetPlatform, getTargetsToAdd, notifiyTargetsAdded, setTargetsToAddprotected transient org.gcube.common.core.resources.service.MainPackage packageprofile
protected String garID
protected String garFile
protected String garname
public DMainPackage(org.gcube.common.core.resources.service.MainPackage packageprofile,
PackageExtractor extractor)
throws Exception
packageprofile - the package profiledownloader - the manager used to download the package from the Software Repository serviceException - if the GAR file is not found or validpublic void deployPackage(Set<org.gcube.common.core.scope.GCUBEScope> targets) throws PackageAldreadyDeployedException, DeployException, InvalidPackageArchiveException
deployPackage in class DeployablePackagePackageAldreadyDeployedExceptionDeployExceptionInvalidPackageArchiveExceptionpublic boolean requireRestart()
protected org.gcube.common.core.resources.service.Package getPackageProfile()
getPackageProfile in class DeployablePackagepublic boolean verify()
throws InvalidPackageArchiveException
InvalidPackageArchiveException - if the package cannot be verifiedCopyright © 2015. All Rights Reserved.