|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides a way for the PrevDb
to load and save persistent objects, and transactions.
The PrevDb
provides the SystemStore
with a Loader
as
a callback interface, so that each implementation can save and load objects in the most efficient way.
Method Summary | |
void |
load(Loader loader)
Load all the Persistent objects at startup. |
void |
saveTransaction(Transaction tran)
Save a Transaction |
void |
shutdown(Loader loader)
Perform the actions needed when the system is shutting down, which may include saving a snapshot of all the objects. |
void |
snapshot(Loader loader)
Take a snapshot of all the persistent objects during running, if required. |
Method Detail |
public void load(Loader loader) throws DataException
Persistent
objects at startup.
loader
- the callback interface for the SystemStore
to load objects.
DataException
public void snapshot(Loader loader)
loader
- the callback interface for the SystemStore
to save objects.public void saveTransaction(Transaction tran)
Transaction
tran
- the Transaction
to savepublic void shutdown(Loader loader)
loader
- the callback interface for the SystemStore
to save objects.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |