org.javagroups.persistence
Interface PersistenceManager

All Known Implementing Classes:
DBPersistenceManager, FilePersistenceManager

public interface PersistenceManager


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.
 

Method Detail

save

public void save(java.io.Serializable key,
                 java.io.Serializable val)
          throws CannotPersistException
Save new NV pair as serializable objects or if already exist; store new state

Throws:
CannotPersistException;
CannotPersistException

remove

public java.io.Serializable remove(java.io.Serializable key)
                            throws CannotRemoveException
Remove existing NV from being persisted

Returns:
Serializable; gives back the value
Throws:
CannotRemoveException;
CannotRemoveException

saveAll

public void saveAll(java.util.Map map)
             throws CannotPersistException
Use to store a complete map into persistent state

Throws:
CannotPersistException;
CannotPersistException

retrieveAll

public java.util.Map retrieveAll()
                          throws CannotRetrieveException
Gives back the Map in last known state

Returns:
Map;
Throws:
CannotRetrieveException;
CannotRetrieveException

clear

public void clear()
           throws CannotRemoveException
Clears the complete NV state from the DB

Throws:
CannotRemoveException;
CannotRemoveException

shutDown

public void shutDown()
Used to handle shutdown call the PersistenceManager implementation. Persistent engines can leave this implementation empty.



Copyright © 2001,2002 www.javagroups.com . All Rights Reserved.