|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.store.impl.MemoryStore
| Field Summary | |
protected java.util.Hashtable |
m_table
The shared store |
| Fields inherited from interface org.apache.excalibur.store.Store |
PERSISTENT_STORE, ROLE, TRANSIENT_STORE |
| Constructor Summary | |
MemoryStore()
|
|
| Method Summary | |
void |
clear()
Clear the Store of all elements |
boolean |
containsKey(java.lang.Object key)
Indicates if the given key is associated to a contained object. |
void |
free()
Try to free some used memory. |
java.lang.Object |
get(java.lang.Object key)
Get the object associated to the given unique key. |
java.util.Enumeration |
keys()
Returns the list of used keys as an Enumeration of Objects. |
void |
remove(java.lang.Object key)
Remove the object associated to the given key. |
int |
size()
Returns count of the objects in the store, or -1 if could not be obtained. |
void |
store(java.lang.Object key,
java.lang.Object value)
Store the given object in a persistent state. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Hashtable m_table
| Constructor Detail |
public MemoryStore()
| Method Detail |
public java.lang.Object get(java.lang.Object key)
get in interface Store
public void store(java.lang.Object key,
java.lang.Object value)
store in interface Storepublic void remove(java.lang.Object key)
remove in interface Storepublic void clear()
clear in interface Storepublic void free()
Store
free in interface Storepublic boolean containsKey(java.lang.Object key)
containsKey in interface Storepublic java.util.Enumeration keys()
keys in interface Storepublic int size()
size in interface Store
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||