net.sf.gilead.core.store.stateful
Class InMemoryProxyStore
java.lang.Object
net.sf.gilead.core.store.stateful.AbstractStatefulProxyStore
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_map
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.io.Serializable>> _map
- The store hashmap
InMemoryProxyStore
public InMemoryProxyStore()
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