org.gcube.vremanagement.resourcebroker.impl.resources
Class SingletonResourceStorage

java.lang.Object
  extended by org.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
      extended by org.gcube.common.core.state.GCUBEStatefulResource<org.gcube.common.core.state.GCUBEWSResourceKey>
          extended by org.gcube.common.core.state.GCUBEWSResource
              extended by org.gcube.vremanagement.resourcebroker.impl.resources.SingletonResourceStorage
All Implemented Interfaces:
org.gcube.common.core.utils.handlers.GCUBEServiceClient, org.globus.wsrf.PersistenceCallback, org.globus.wsrf.Resource, org.globus.wsrf.ResourceLifetime, org.globus.wsrf.ResourceProperties, org.globus.wsrf.TopicListAccessor

public class SingletonResourceStorage
extends org.gcube.common.core.state.GCUBEWSResource

Consists of the GCUBEWSResource used by BrokerService to store and handle the plans for deploying requests coming from VREManagerService. Instantiated in a singleton way stores all the data needed to keep the BrokerService state persistent.

Author:
Daniele Strollo (ISTI-CNR)

Nested Class Summary
 
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
 
Constructor Summary
SingletonResourceStorage()
           
 
Method Summary
 void addElement(java.lang.String key, java.lang.Object value)
           
 boolean containsKey(java.lang.String key)
           
 boolean containsValue(java.lang.Object value)
           
 void deleteElement(java.lang.String key)
           
 java.lang.Object getElem(java.lang.String key)
           
 java.util.HashMap<java.lang.String,java.lang.Object> getState()
          Deprecated. for internal use only
 
Methods inherited from class org.gcube.common.core.state.GCUBEWSResource
getCurrentTime, getEPR, getPorttypeContext, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.globus.wsrf.PersistenceCallback
store
 

Constructor Detail

SingletonResourceStorage

public SingletonResourceStorage()
Method Detail

getElem

public final java.lang.Object getElem(java.lang.String key)

addElement

public final void addElement(java.lang.String key,
                             java.lang.Object value)

deleteElement

public final void deleteElement(java.lang.String key)

containsKey

public final boolean containsKey(java.lang.String key)

containsValue

public final boolean containsValue(java.lang.Object value)

getState

public final java.util.HashMap<java.lang.String,java.lang.Object> getState()
Deprecated. for internal use only