|
||||||||||
| 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(Properties properties)
Initialize the recovery mgr before calling the other methods. |
Vector<StateRecoverable<TxState>> |
recover()
Recover all recorded recoverable instances in their latest state. |
StateRecoverable<TxState> |
recover(Object id)
Reconstruct an instance of a staterecoverable. |
void |
register(StateRecoverable<TxState> staterecoverable)
Register a staterecoverable with the recovery manager service. |
| Method Detail |
|---|
Vector<StateRecoverable<TxState>> recover()
throws LogException
LogException - If the log fails.
void init(Properties properties)
throws LogException
LogException - If the underlying log fails.void register(StateRecoverable<TxState> staterecoverable)
staterecoverable - The object that wants recoverable states.
StateRecoverable<TxState> 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 | |||||||||