|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atomikos.persistence.imp.StateRecoveryManagerImp
public class StateRecoveryManagerImp
Default implementation of a state recovery manager.
| Constructor Summary | |
|---|---|
StateRecoveryManagerImp()
|
|
| Method Summary | |
|---|---|
void |
close()
Shutdown. |
void |
delete(Object id)
Deletes a given image from the underlying logs. |
void |
init(Properties p)
Initialize the recovery mgr before calling the other methods. |
void |
preEnter(FSMEnterEvent<TxState> event)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StateRecoveryManagerImp()
| Method Detail |
|---|
public void register(StateRecoverable<TxState> staterecoverable)
StateRecoveryManager
register in interface StateRecoveryManagerstaterecoverable - The object that wants recoverable states.StateRecoveryManager
public void preEnter(FSMEnterEvent<TxState> event)
throws IllegalStateException
preEnter in interface FSMPreEnterListener<TxState>IllegalStateExceptionFSMPreEnterListener
public void close()
throws LogException
StateRecoveryManager
close in interface StateRecoveryManagerLogException - For underlying log failure.StateRecoveryManager
public StateRecoverable<TxState> recover(Object id)
throws LogException
StateRecoveryManager
recover in interface StateRecoveryManagerLogException - If underlying object log fails.StateRecoveryManager
public Vector<StateRecoverable<TxState>> recover()
throws LogException
StateRecoveryManager
recover in interface StateRecoveryManagerLogException - If the log fails.StateRecoveryManager
public void delete(Object id)
throws LogException
StateRecoveryManager
delete in interface StateRecoveryManagerid - The id of the image to delete.
LogException - On failure.StateRecoveryManager
public void init(Properties p)
throws LogException
StateRecoveryManager
init in interface StateRecoveryManagerLogException - If the underlying log fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||