public class DeployerResource
extends org.gcube.common.core.state.GCUBEWSFieldsSerializableResource
BaseTypedPackage serialized instances of the packages deployed on the gHN
WSObjectsSerializableResource,
GCUBEWSObjects2FilePersistenceDelegate,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
DeployerResource.NoSuchPackageException
No package on the gHN has been found
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DeployedPackagesRP |
protected static String |
LastDeploymentRP |
protected static String |
NumPackagesRP |
| Constructor and Description |
|---|
DeployerResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPackage(BaseTypedPackage pack)
Adds a new package to the resource state
|
void |
clearLastDeployment() |
org.gcube.common.vremanagement.deployer.stubs.deployer.DeployedPackage[] |
getDeployedPackages()
Gets for the RP DeployedPackages
|
List<? extends Serializable> |
getFieldsToSerialize() |
String |
getLastDeployment()
Gets the RP LastDeploymentRP
|
Report |
getLastReport()
Gets the last deployment report
|
BaseTypedPackage |
getPackage(KeyData key)
Gets a previously deployed package from the service's state
|
Set<? extends BasePackage> |
getPackagesToUpdate()
Gets the list of packages to be updated with new Scopes
|
protected String[] |
getPropertyNames() |
protected void |
initialise(Object... arg0) |
boolean |
isDeployed(BaseTypedPackage pack)
Checks if a package is already deployed here
|
boolean |
isUndeployable(BaseTypedPackage base,
Set<org.gcube.common.core.scope.GCUBEScope> scopes)
Decides whether or not a package can be undeployed
|
void |
removePackage(BaseTypedPackage pack)
Removes a package from the resource state
|
void |
setDeployedPackages(org.gcube.common.vremanagement.deployer.stubs.deployer.DeployedPackage[] packages)
Sets for the RP DeployedPackages
|
void |
setFieldsToSerialize(List<? extends Serializable> objs) |
void |
setLastDeployment(String lastDeployment)
Sets for the RP LastDeploymentRP
|
getCurrentTime, getEPR, getPorttypeContext, getProperty, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialiseContainers, inScope, load, publish, setPortTypeContext, setTerminationTime, unpublishgetID, getLock, getScheduledTasks, getScope, launchTask, onRemove, setID, setPersistenceDelegate, stopTask, storegetPortTypeMap, setPortTypeMapprotected static final String NumPackagesRP
protected static final String DeployedPackagesRP
protected static final String LastDeploymentRP
protected void initialise(Object... arg0) throws Exception
initialise in class org.gcube.common.core.state.GCUBEWSResourceExceptionprotected String[] getPropertyNames()
getPropertyNames in class org.gcube.common.core.state.GCUBEWSResourcepublic List<? extends Serializable> getFieldsToSerialize()
getFieldsToSerialize in interface org.gcube.common.core.persistence.GCUBEWSFields2FilePersistenceDelegate.WSFieldsSerializablegetFieldsToSerialize in class org.gcube.common.core.state.GCUBEWSFieldsSerializableResourcepublic void setFieldsToSerialize(List<? extends Serializable> objs)
setFieldsToSerialize in interface org.gcube.common.core.persistence.GCUBEWSFields2FilePersistenceDelegate.WSFieldsSerializablesetFieldsToSerialize in class org.gcube.common.core.state.GCUBEWSFieldsSerializableResourcepublic void setLastDeployment(String lastDeployment)
lastDeployment - the callback ID related to the last deployment operation invokedpublic void clearLastDeployment()
public String getLastDeployment()
public org.gcube.common.vremanagement.deployer.stubs.deployer.DeployedPackage[] getDeployedPackages()
public void setDeployedPackages(org.gcube.common.vremanagement.deployer.stubs.deployer.DeployedPackage[] packages)
packages - the packages deployed on the nodepublic void addPackage(BaseTypedPackage pack)
pack - the package to addpublic BaseTypedPackage getPackage(KeyData key) throws DeployerResource.NoSuchPackageException
key - the key of the package to look forDeployerResource.NoSuchPackageException - if the package is not in the service's statepublic boolean isDeployed(BaseTypedPackage pack)
pack - the package to checkpublic void removePackage(BaseTypedPackage pack) throws DeployerResource.NoSuchPackageException
pack - the package to removeDeployerResource.NoSuchPackageExceptionpublic Set<? extends BasePackage> getPackagesToUpdate()
public Report getLastReport() throws Report.ReportNotFoundException
Report.ReportNotFoundException - if the report is not valid or does not existpublic boolean isUndeployable(BaseTypedPackage base, Set<org.gcube.common.core.scope.GCUBEScope> scopes)
base - the package to checkscopes - the undeployment scope(s)Copyright © 2015. All Rights Reserved.