|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.persistence.imp.StateRecoveryManagerImp
public class StateRecoveryManagerImp
A standard implementation of a state recovery manager.
Field Summary | |
---|---|
protected ObjectLog |
objectlog_
|
Constructor Summary | |
---|---|
StateRecoveryManagerImp(ObjectLog objectlog)
Construct a new instance that uses an underlying log. |
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. |
void |
preEnter(FSMEnterEvent event)
Called BEFORE the FSM enters the new state, so that the callee is sure that nobody has seen the new state yet. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ObjectLog objectlog_
Constructor Detail |
---|
public StateRecoveryManagerImp(ObjectLog objectlog)
objectlog
- The log to delegate to.Method Detail |
---|
public void init() throws LogException
StateRecoveryManager
init
in interface StateRecoveryManager
LogException
- If the underlying log fails.StateRecoveryManager
public void register(StateRecoverable staterecoverable)
StateRecoveryManager
register
in interface StateRecoveryManager
staterecoverable
- The object that wants recoverable states.StateRecoveryManager
public void preEnter(FSMEnterEvent event) throws IllegalStateException
FSMPreEnterListener
preEnter
in interface FSMPreEnterListener
IllegalStateException
- on failure.
The callee can use this to prevent the state change from
happening.FSMPreEnterListener
public void close() throws LogException
StateRecoveryManager
close
in interface StateRecoveryManager
LogException
- For underlying log failure.StateRecoveryManager
public StateRecoverable recover(Object id) throws LogException
StateRecoveryManager
recover
in interface StateRecoveryManager
LogException
- If underlying object log fails.StateRecoveryManager
public Vector recover() throws LogException
StateRecoveryManager
recover
in interface StateRecoveryManager
LogException
- If the log fails.StateRecoveryManager
public void delete(Object id) throws LogException
StateRecoveryManager
delete
in interface StateRecoveryManager
id
- The id of the image to delete.
LogException
- On failure.StateRecoveryManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |