public class StateRecoveryManagerImp extends java.lang.Object implements StateRecoveryManager, FSMPreEnterListener
| Constructor and Description |
|---|
StateRecoveryManagerImp() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shutdown.
|
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.
|
void |
register(RecoverableCoordinator staterecoverable)
Register a staterecoverable with the recovery manager service.
|
void |
setOltpLog(OltpLog oltpLog) |
public void register(RecoverableCoordinator staterecoverable)
StateRecoveryManagerregister in interface StateRecoveryManagerstaterecoverable - The object that wants recoverable states.StateRecoveryManagerpublic void preEnter(FSMEnterEvent event) throws java.lang.IllegalStateException
FSMPreEnterListenerpreEnter in interface FSMPreEnterListenerjava.lang.IllegalStateException - on failure.
The callee can use this to prevent the state change from
happening.FSMPreEnterListenerpublic void close()
throws LogException
StateRecoveryManagerclose in interface StateRecoveryManagerLogException - For underlying log failure.StateRecoveryManagerpublic void setOltpLog(OltpLog oltpLog)
Copyright © 2020. All Rights Reserved.