Class TORecoveryModule
java.lang.Object
com.arjuna.ats.internal.txoj.recovery.TORecoveryModule
- All Implemented Interfaces:
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
ConstructorDescriptionCreate the module to scan in the default location for object states. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 passvoid
Called by the RecoveryManager RECOVERY_BACKOFF_PERIOD seconds after the completion of the first passMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.arjuna.ats.arjuna.recovery.RecoveryModule
hasWorkLeftToDo
-
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 interfaceRecoveryModule
-
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 interfaceRecoveryModule
-
initialise
protected void initialise()Set-up routine.
-