|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.nms.store.SerializeHashtable
public class SerializeHashtable
Used when WebNMS is run in serialized mode. Maintains a hashtable of 1000 elements in memory and the rest in serialized files.
| Constructor Summary | |
|---|---|
protected |
SerializeHashtable()
|
|
SerializeHashtable(java.lang.String name)
|
| Method Summary | |
|---|---|
void |
clear()
Clears this hashtable. |
java.lang.Object |
clone()
|
boolean |
contains(java.lang.Object value)
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Enumeration |
elements()
|
java.lang.Object |
get(java.lang.Object key)
Returns an Object mapped to the given key. |
static int |
getMaxValue()
|
boolean |
isEmpty()
|
java.util.Enumeration |
keys()
|
void |
makeBuffer()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Adds a key value pair to the hashtable. |
java.lang.Object |
remove(java.lang.Object key)
Removes a key value pair given the key. |
void |
restore()
|
void |
saveState()
|
static void |
setMaxValue(int i)
Sets the number of elements to be kept in memory. |
int |
size()
Returns the total size of this vector. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SerializeHashtable()
public SerializeHashtable(java.lang.String name)
String - The name of the state files as well as the name of the
directory in which the serialized files are to be stored.| Method Detail |
|---|
public static void setMaxValue(int i)
int - The maximum number of elements to be stored in memorypublic static int getMaxValue()
public java.lang.Object get(java.lang.Object key)
obj - The key as a object.
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
public int size()
public boolean isEmpty()
public void clear()
public java.lang.Object remove(java.lang.Object key)
key - The key of the pair to be removed.
public boolean containsKey(java.lang.Object key)
public boolean contains(java.lang.Object value)
public boolean containsValue(java.lang.Object value)
public java.util.Enumeration elements()
public java.util.Enumeration keys()
public java.lang.Object clone()
clone in class java.lang.Objectpublic void saveState()
public void restore()
public void makeBuffer()
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||