org.jgroups.persistence
Class DBPersistenceManager
java.lang.Objectorg.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)- 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
|
log
protected final Log log
DBPersistenceManager
public DBPersistenceManager(InputStream input)
throws Exception Duplicate constructor allowing inputstream
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
Copyright B) 1998-2005 Bela Ban. All Rights Reserved.