public class UpdatablePackage extends BaseTypedPackage implements Updatable
BaseTypedPackage.TYPEdependencies, installScripts, key, logger, packageFiles, properties, rebootScripts, targetsToAdd, uninstallScripts| Constructor and Description |
|---|
UpdatablePackage(String serviceClass,
String serviceName,
String serviceVersion,
String packageName,
String packageVersion) |
| Modifier and Type | Method and Description |
|---|---|
void |
postUpdate()
Performs the post-updating operations
|
void |
preUpdate()
Performs the pre-updating operations
|
boolean |
requireRestart()
States if after the updating, it is required to restart the container
|
void |
update(Set<org.gcube.common.core.scope.GCUBEScope> scopes,
boolean cleanState)
Update the package from the scopes
|
boolean |
verify()
Verifies if the package has been correctly updated
|
getType, 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, toStringpublic void update(Set<org.gcube.common.core.scope.GCUBEScope> scopes, boolean cleanState) throws UpdateException, InvalidPackageArchiveException
Updatableupdate in interface Updatablescopes - scopes from which the package has to be undeployedcleanState - states if the package's state must be also removed after undeploymentInvalidPackageArchiveExceptionUpdateExceptionpublic boolean verify()
throws InvalidPackageArchiveException
Updatableverify in interface UpdatableInvalidPackageArchiveException - if the package cannot be verifiedpublic boolean requireRestart()
UpdatablerequireRestart in interface Updatablepublic void postUpdate()
throws InvalidPackageArchiveException,
UpdateException
UpdatablepostUpdate in interface UpdatableInvalidPackageArchiveExceptionUpdateExceptionpublic void preUpdate()
throws InvalidPackageArchiveException,
UpdateException
UpdatablepreUpdate in interface UpdatableInvalidPackageArchiveExceptionUpdateExceptionCopyright © 2015. All Rights Reserved.