org.gcube.common.core.state
Class GCUBEWSFieldsSerializableResource

java.lang.Object
  extended by org.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
      extended by org.gcube.common.core.state.GCUBEStatefulResource<GCUBEWSResourceKey>
          extended by org.gcube.common.core.state.GCUBEWSResource
              extended by org.gcube.common.core.state.GCUBEWSFieldsSerializableResource
All Implemented Interfaces:
Serializable, GCUBEWSFields2FilePersistenceDelegate.WSFieldsSerializable, GCUBEServiceClient, org.globus.wsrf.PersistenceCallback, org.globus.wsrf.Resource, org.globus.wsrf.ResourceLifetime, org.globus.wsrf.ResourceProperties, org.globus.wsrf.TopicListAccessor

public abstract class GCUBEWSFieldsSerializableResource
extends GCUBEWSResource
implements GCUBEWSFields2FilePersistenceDelegate.WSFieldsSerializable

Base class for GCUBEWSResource implementing the GCUBEWSFields2FilePersistenceDelegate.WSFieldsSerializable interface. It can be used to serialize/deserialize an arbitrary list of (eventually dynamic) objects extending the Serializable interface. Such fields do not need to be RPs.

Author:
Manuele Simi (ISTI-CNR)
See Also:
Serialized Form

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
GCUBEWSFieldsSerializableResource()
           
 
Method Summary
 List<? extends Serializable> getFieldsToSerialize()
          Gets the list of fields to serialize
 void setFieldsToSerialize(List<? extends Serializable> objs)
          Restores the list of deserialized fields
 
Methods inherited from class org.gcube.common.core.state.GCUBEWSResource
getCurrentTime, getEPR, getPorttypeContext, getProperty, getPropertyNames, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, 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
 

Constructor Detail

GCUBEWSFieldsSerializableResource

public GCUBEWSFieldsSerializableResource()
Method Detail

getFieldsToSerialize

public List<? extends Serializable> getFieldsToSerialize()
Gets the list of fields to serialize

Specified by:
getFieldsToSerialize in interface GCUBEWSFields2FilePersistenceDelegate.WSFieldsSerializable
Returns:
the list of fields to serialize

setFieldsToSerialize

public void setFieldsToSerialize(List<? extends Serializable> objs)
Restores the list of deserialized fields

Specified by:
setFieldsToSerialize in interface GCUBEWSFields2FilePersistenceDelegate.WSFieldsSerializable
Parameters:
objs - the list of deserialized fields


Copyright © 2013. All Rights Reserved.