net.sf.gilead.core.store.stateful
Class InMemoryProxyStore

java.lang.Object
  extended by net.sf.gilead.core.store.stateful.AbstractStatefulProxyStore
      extended by net.sf.gilead.core.store.stateful.InMemoryProxyStore
All Implemented Interfaces:
IProxyStore

public class InMemoryProxyStore
extends AbstractStatefulProxyStore

In Memory Proxy Information Store. This class stores POJO in a simple hashmap

Author:
bruno.marchesson

Field Summary
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.io.Serializable>> _map
          The store hashmap
 
Fields inherited from class net.sf.gilead.core.store.stateful.AbstractStatefulProxyStore
_persistenceUtil
 
Constructor Summary
InMemoryProxyStore()
           
 
Method Summary
protected  void delete(java.lang.String key)
          Delete the key from the underlying storage
protected  java.util.Map<java.lang.String,java.io.Serializable> get(java.lang.String key)
          Get the proxy informations associated with the key
protected  void store(java.lang.String key, java.util.Map<java.lang.String,java.io.Serializable> proxyInformation)
          Store the value in the map.
 
Methods inherited from class net.sf.gilead.core.store.stateful.AbstractStatefulProxyStore
cleanUp, computeKey, computeKey, getPersistenceUtil, getProxyInformations, removeProxyInformations, setPersistenceUtil, storeProxyInformations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_map

protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.io.Serializable>> _map
The store hashmap

Constructor Detail

InMemoryProxyStore

public InMemoryProxyStore()
Method Detail

delete

protected void delete(java.lang.String key)
Description copied from class: AbstractStatefulProxyStore
Delete the key from the underlying storage

Specified by:
delete in class AbstractStatefulProxyStore

get

protected java.util.Map<java.lang.String,java.io.Serializable> get(java.lang.String key)
Description copied from class: AbstractStatefulProxyStore
Get the proxy informations associated with the key

Specified by:
get in class AbstractStatefulProxyStore
Returns:
the value if found, null otherwise

store

protected void store(java.lang.String key,
                     java.util.Map<java.lang.String,java.io.Serializable> proxyInformation)
Description copied from class: AbstractStatefulProxyStore
Store the value in the map.

Specified by:
store in class AbstractStatefulProxyStore