|
||||||||||
| 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<GCUBEWSResourceKey>
org.gcube.common.core.state.GCUBEWSResource
org.gcube.common.core.state.GCUBEWSLiteResource<LOCAL>
LOCAL - the type of the GCUBELocalResource which can be viewed over.public abstract class GCUBEWSLiteResource<LOCAL extends GCUBELocalResource>
An abstract specialisation of GCUBEWSResources for resource that act as views
over GCUBELocalResources.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.gcube.common.core.state.GCUBEStatefulResource |
|---|
GCUBEStatefulResource.LOCK, GCUBEStatefulResource.TaskContext |
| Field Summary |
|---|
| Fields inherited from class org.gcube.common.core.state.GCUBEStatefulResource |
|---|
logger, uuidGen |
| Constructor Summary | |
|---|---|
GCUBEWSLiteResource()
|
|
| Method Summary | |
|---|---|
String |
getLocalID()
Returns the identifier of the GCUBELocalResource associated with the resource. |
LOCAL |
getLocalResource()
Returns the GCUBELocalResource associated with resource. |
protected org.globus.wsrf.ResourceProperty |
getProperty(String name)
Returns a new RP with a given local name. |
protected abstract String[] |
getPropertyNames()
Returns the names of fields to be transformed to into ReflectionResourceProperties. |
protected void |
initialise(GCUBEWSResourceKey id,
Object... params)
Used internally to initialise the resource with a given identifier and from given parameters. |
void |
onRemove()
Invoked by GCUBEResourceHome in the process of removing the resource. |
void |
setLocalID(String resourceID)
Sets the identifier of the GCUBELocalResource associated with the resource. |
protected Object[] |
transformParams(Object... params)
Invoked during the initialisation of the resource, it transforms the initialisation parameters into those required by the associated GCUBELocalResource. |
| Methods inherited from class org.gcube.common.core.state.GCUBEWSResource |
|---|
getCurrentTime, getEPR, getPorttypeContext, 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, 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 |
| Constructor Detail |
|---|
public GCUBEWSLiteResource()
| Method Detail |
|---|
protected void initialise(GCUBEWSResourceKey id,
Object... params)
throws Exception
initialise in class GCUBEWSResourceid - the identifier, or null if a new one should be generated.params - (optional) the initialisation parameters.
Exception - if the resource could not be initialised.
protected Object[] transformParams(Object... params)
throws Exception
GCUBELocalResource.
By default, it performs the identity transformation. Override if the initialisation of the resource
must be decoupled from the initialisation of the GCUBELocalResource.
params - the initialisation parameters of the view.
Exception - if the transformation could not be performed.public String getLocalID()
GCUBELocalResource associated with the resource.
public void setLocalID(String resourceID)
GCUBELocalResource associated with the resource.
resourceID - the identifier.
public void onRemove()
throws org.globus.wsrf.ResourceException
GCUBEResourceHome in the process of removing the resource.
onRemove in class GCUBEStatefulResource<GCUBEWSResourceKey>org.globus.wsrf.ResourceException - if the resource could not be removed.protected abstract String[] getPropertyNames()
ReflectionResourceProperties.
With reflection, subclasses do not need to maintain their RPs in
sync with the state of the associated GCUBELocalResource. Rather, the RPs remain
virtual, but requires getters and setters for each of the corresponding fields. Typically, getters and
setters would dispatch to corresponding methods of the associated GCUBELocalResource.
getPropertyNames in class GCUBEWSResource
public LOCAL getLocalResource()
throws org.globus.wsrf.ResourceException
GCUBELocalResource associated with resource.
org.globus.wsrf.ResourceException
protected org.globus.wsrf.ResourceProperty getProperty(String name)
throws Exception
SimpleResourceProperty. Override to use different ResourceProperty implementation.
getProperty in class GCUBEWSResourcename - the local name.
Exception - if the property could not be created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||