org.jgroups.persistence
Class DBPersistenceManager
java.lang.Object
org.jgroups.persistence.DBPersistenceManager
- PersistenceManager
public class DBPersistenceManager
extends java.lang.Object
Class will be utilized
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) - Used to remove existing entry
|
Map | retrieveAll() - Used to retrieve the persisted map back to its last known state
|
void | save(Serializable key, Serializable val) - Save new NV pair as serializable objects or if already exist; store
new state
|
void | saveAll(Map map) - Used to save all row entries for the map in to DB
|
void | shutDown() - Shutting down the database cleanly
|
DBPersistenceManager
public DBPersistenceManager(InputStream input)
throws Exception
Duplicate constructor allowing inputstream
input
-
DBPersistenceManager
public DBPersistenceManager(String filename)
throws Exception
Default construct
filename
- absolute filepath
init
protected void init(InputStream in)
throws Exception
used to intitiailize complete DB access. THis method will use
existing database to create schema (if it doesnt exist) and
get PersistenceManager in usable condition
in
-
Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.