|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--org.javagroups.persistence.FilePersistenceManager
| Constructor Summary | |
|---|---|
FilePersistenceManager(java.lang.String filePath)
Default constructor Currently NOOP |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the complete NV state from the DB |
java.io.Serializable |
remove(java.io.Serializable key)
Remove existing NV from being persisted |
java.util.Map |
retrieveAll()
Gives back the Map in last known state |
void |
save(java.io.Serializable key,
java.io.Serializable val)
Save new NV pair as serializable objects or if already exist; store new state |
void |
saveAll(java.util.Map map)
Use to store a complete map into persistent state |
void |
shutDown()
Used to handle shutdown call the PersistenceManager implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FilePersistenceManager(java.lang.String filePath)
| Method Detail |
public void save(java.io.Serializable key,
java.io.Serializable val)
throws CannotPersistException
save in interface PersistenceManagerCannotPersistException;
CannotPersistException
public java.io.Serializable remove(java.io.Serializable key)
throws CannotRemoveException
remove in interface PersistenceManagerCannotRemoveException;
CannotRemoveException
public void saveAll(java.util.Map map)
throws CannotPersistException
saveAll in interface PersistenceManagerCannotPersistException;
CannotPersistException
public java.util.Map retrieveAll()
throws CannotRetrieveException
retrieveAll in interface PersistenceManagerCannotRetrieveException;
CannotRetrieveException
public void clear()
throws CannotRemoveException
clear in interface PersistenceManagerCannotRemoveException; - x
CannotRemoveExceptionpublic void shutDown()
shutDown in interface PersistenceManager
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||