com.atomikos.persistence.imp
Class StateRecoveryManagerImp

java.lang.Object
  extended by com.atomikos.persistence.imp.StateRecoveryManagerImp
All Implemented Interfaces:
FSMPreEnterListener, StateRecoveryManager, EventListener

public class StateRecoveryManagerImp
extends Object
implements StateRecoveryManager, FSMPreEnterListener

Default implementation of a state recovery manager.


Constructor Summary
StateRecoveryManagerImp()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateRecoveryManagerImp

public StateRecoveryManagerImp()
Method Detail

register

public void register(RecoverableCoordinator staterecoverable)
Description copied from interface: StateRecoveryManager
Register a staterecoverable with the recovery manager service.

Specified by:
register in interface StateRecoveryManager
Parameters:
staterecoverable - The object that wants recoverable states.
See Also:
StateRecoveryManager

preEnter

public void preEnter(FSMEnterEvent event)
              throws IllegalStateException
Description copied from interface: FSMPreEnterListener
Called BEFORE the FSM enters the new state, so that the callee is sure that nobody has seen the new state yet.

Specified by:
preEnter in interface FSMPreEnterListener
Throws:
IllegalStateException - on failure. The callee can use this to prevent the state change from happening.
See Also:
FSMPreEnterListener

close

public void close()
           throws LogException
Description copied from interface: StateRecoveryManager
Shutdown.

Specified by:
close in interface StateRecoveryManager
Throws:
LogException - For underlying log failure.
See Also:
StateRecoveryManager

setOltpLog

public void setOltpLog(OltpLog oltpLog)


Copyright © 2016. All Rights Reserved.