org.jgroups.persistence
public class DBPersistenceManager extends Object implements PersistenceManager
| Field Summary | |
|---|---|
| protected Log | log |
| Constructor Summary | |
|---|---|
| DBPersistenceManager(String filename)
Default construct | |
| DBPersistenceManager(InputStream input)
Duplicate constructor allowing inputstream | |
| Method Summary | |
|---|---|
| void | clear()
Clears the key-cache as well as all entries |
| protected void | init(InputStream in)
used to intitiailize complete DB access. |
| Serializable | remove(Serializable key)
Removes existing entry. |
| Map | retrieveAll()
Used to retrieve the persisted map back to its last known state |
| void | save(Serializable key, Serializable val)
Saves NV pair as serializable object;
creates if new, stores new state if already exists. |
| void | saveAll(Map map)
Saves all row entries for the map to DB. |
| void | shutDown()
Shutting down the database cleanly |
Parameters: filename absolute filepath
Throws: Exception;
Parameters: input
Throws: Exception
Throws: CannotRemoveException;
Parameters: in
Throws: Exception;
Parameters: key
Throws: CannotRemoveException;
Returns: Map;
Throws: CannotRetrieveException;
Parameters: key val
Throws: CannotPersistException;
Parameters: map
Throws: CannotPersistException;