|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateRecoveryManager
A state recovery manager is responsible for reconstructing StateRecoverable instances based on the history.
Method Summary | |
---|---|
void |
close()
Shutdown. |
void |
delete(Object id)
Deletes a given image from the underlying logs. |
void |
init()
Initialize the recovery mgr before calling the other methods. |
Vector |
recover()
Recover all recorded recoverable instances in their latest state. |
StateRecoverable |
recover(Object id)
Reconstruct an instance of a staterecoverable. |
void |
register(StateRecoverable staterecoverable)
Register a staterecoverable with the recovery manager service. |
Method Detail |
---|
Vector recover() throws LogException
LogException
- If the log fails.void init() throws LogException
LogException
- If the underlying log fails.void register(StateRecoverable staterecoverable)
staterecoverable
- The object that wants recoverable states.StateRecoverable recover(Object id) throws LogException
Object
- The staterecoverable's identifier.
LogException
- If underlying object log fails.void close() throws LogException
LogException
- For underlying log failure.void delete(Object id) throws LogException
id
- The id of the image to delete.
LogException
- On failure.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |