LOCAL - the type of the GCUBELocalResource which can be viewed over.public abstract class GCUBEWSLiteResource<LOCAL extends GCUBELocalResource> extends GCUBEWSResource
GCUBEWSResources for resource that act as views
over GCUBELocalResources.GCUBEStatefulResource.LOCK, GCUBEStatefulResource.TaskContextlogger, uuidGen| Constructor and Description |
|---|
GCUBEWSLiteResource() |
| Modifier and Type | Method and Description |
|---|---|
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. |
getCurrentTime, getEPR, getPorttypeContext, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialiseContainers, inScope, load, publish, setPortTypeContext, setTerminationTime, unpublishgetID, getLock, getScheduledTasks, getScope, launchTask, setID, setPersistenceDelegate, stopTask, storegetPortTypeMap, setPortTypeMapprotected 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 GCUBEWSResourcepublic LOCAL getLocalResource() throws org.globus.wsrf.ResourceException
GCUBELocalResource associated with resource.org.globus.wsrf.ResourceExceptionprotected 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.Copyright © 2015. All Rights Reserved.