Class TORecoveryModule

java.lang.Object
com.arjuna.ats.internal.txoj.recovery.TORecoveryModule
All Implemented Interfaces:
RecoveryModule

public class TORecoveryModule extends Object implements RecoveryModule
This class is a plug-in module for the recovery manager. This class is responsible for the recovery of Transactional Objects (aka AIT objects), i.e., objects that derive from LockManager and StateManager.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create the module to scan in the default location for object states.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Set-up routine.
    void
    Called by the RecoveryManager at start up, and then PERIODIC_RECOVERY_PERIOD seconds after the completion, for all RecoveryModules, of the second pass
    void
    Called by the RecoveryManager RECOVERY_BACKOFF_PERIOD seconds after the completion of the first pass

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TORecoveryModule

      public TORecoveryModule()
      Create the module to scan in the default location for object states. Any modifications to locations must occur in the properties file.
  • Method Details

    • periodicWorkFirstPass

      public void periodicWorkFirstPass()
      Description copied from interface: RecoveryModule
      Called by the RecoveryManager at start up, and then PERIODIC_RECOVERY_PERIOD seconds after the completion, for all RecoveryModules, of the second pass
      Specified by:
      periodicWorkFirstPass in interface RecoveryModule
    • periodicWorkSecondPass

      public void periodicWorkSecondPass()
      Description copied from interface: RecoveryModule
      Called by the RecoveryManager RECOVERY_BACKOFF_PERIOD seconds after the completion of the first pass
      Specified by:
      periodicWorkSecondPass in interface RecoveryModule
    • initialise

      protected void initialise()
      Set-up routine.