|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
org.gcube.common.core.state.GCUBEStatefulResource<org.gcube.common.core.state.GCUBEWSResourceKey>
org.gcube.common.core.state.GCUBEWSResource
org.gcube.common.core.state.GCUBEWSFieldsSerializableResource
org.gcube.common.vremanagement.deployer.impl.state.DeployerResource
public class DeployerResource
Deployer stateful resource.
The state is represented by the BaseTypedPackage serialized instances of the packages deployed on the gHN
WSObjectsSerializableResource,
GCUBEWSObjects2FilePersistenceDelegate,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
DeployerResource.NoSuchPackageException
No package on the gHN has been found |
| Nested classes/interfaces inherited from class org.gcube.common.core.state.GCUBEStatefulResource |
|---|
org.gcube.common.core.state.GCUBEStatefulResource.LOCK, org.gcube.common.core.state.GCUBEStatefulResource.TaskContext |
| Field Summary | |
|---|---|
protected static String |
DeployedPackagesRP
|
protected static String |
LastDeploymentRP
|
protected static String |
NumPackagesRP
|
| Fields inherited from class org.gcube.common.core.state.GCUBEStatefulResource |
|---|
logger, uuidGen |
| Constructor Summary | |
|---|---|
DeployerResource()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.gcube.common.core.state.GCUBEWSResource |
|---|
getCurrentTime, getEPR, getPorttypeContext, getProperty, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialiseContainers, inScope, load, publish, setPortTypeContext, setTerminationTime, unpublish |
| Methods inherited from class org.gcube.common.core.state.GCUBEStatefulResource |
|---|
getID, getLock, getScheduledTasks, getScope, launchTask, onRemove, setID, setPersistenceDelegate, stopTask, store |
| Methods inherited from class org.gcube.common.core.utils.handlers.GCUBEServiceClientImpl |
|---|
getPortTypeMap, setPortTypeMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.globus.wsrf.PersistenceCallback |
|---|
store |
| Field Detail |
|---|
protected static final String NumPackagesRP
protected static final String DeployedPackagesRP
protected static final String LastDeploymentRP
| Constructor Detail |
|---|
public DeployerResource()
| Method Detail |
|---|
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 add
public BaseTypedPackage getPackage(KeyData key)
throws DeployerResource.NoSuchPackageException
key - the key of the package to look for
DeployerResource.NoSuchPackageException - if the package is not in the service's statepublic boolean isDeployed(BaseTypedPackage pack)
pack - the package to check
public void removePackage(BaseTypedPackage pack)
throws DeployerResource.NoSuchPackageException
pack - the package to remove
DeployerResource.NoSuchPackageExceptionpublic Set<? extends BasePackage> getPackagesToUpdate()
public Report getLastReport()
throws Report.ReportNotFoundException
Report.ReportNotFoundException - if the report is not valid or does not exist
public boolean isUndeployable(BaseTypedPackage base,
Set<org.gcube.common.core.scope.GCUBEScope> scopes)
base - the package to checkscopes - the undeployment scope(s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||