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)
StateRecoveryManager
register
in interface StateRecoveryManager
staterecoverable
- The object that wants recoverable states.StateRecoveryManager
public void preEnter(FSMEnterEvent event) throws java.lang.IllegalStateException
FSMPreEnterListener
preEnter
in interface FSMPreEnterListener
java.lang.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 void setOltpLog(OltpLog oltpLog)
Copyright © 2020. All Rights Reserved.