|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectLog
Interface defining the functionality for logging objects to persistent storage.
| Method Summary | |
|---|---|
void |
close()
Closes the log after use. |
void |
delete(Object id)
Deletes the given object from the log. |
void |
flush(Recoverable recoverable)
Flushes to permanent memory. |
void |
init()
Initializes the object log. |
Vector<StateRecoverable<TxState>> |
recover()
Recovers all non-deleted object images flushed so far. |
Recoverable |
recover(Object id)
Recovers the instance with given ID. |
| Method Detail |
|---|
void flush(Recoverable recoverable)
throws LogException
recoverable - Recoverable instance. NOTE: if the instance has the same
ObjectId as a previous one, then the latter will be overridden
by this one! More precisely, history() will only return the
last image for a given ObjectId.
LogException - if it did not work.
void init()
throws LogException
LogException - If error occurs.
Vector<StateRecoverable<TxState>> recover()
throws LogException
LogException
Recoverable recover(Object id)
throws LogException
id - The id to recover. @return Recoverable The recovered logimage,
null if not found. @exception LogException On failure.
LogException
void delete(Object id)
throws LogException
id - The object UID.
LogException - on failure.
void close()
throws LogException
LogException - on failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||