Class RecoveryEnablement

java.lang.Object
com.arjuna.ats.internal.jts.orbspecific.recovery.RecoveryEnablement
All Implemented Interfaces:
RecoveryActivator

public class RecoveryEnablement extends Object implements RecoveryActivator
Registers the appropriate classes with the ORB. An application using the Transaction Service should load an instance of this class prior to orb-initialisation. Loading an instance can be achieved by naming the class in an OrbPreInit property.

Orb-specific details of recovery are handled by this class.

The class also includes the static startRCservice method (package access), used by the RecoveryManager, which is orb-specific

Since:
JTS 2.1.
Version:
$Id: RecoveryEnablement.java 2342 2006-03-30 13:06:17Z $
Author:
Peter Furniss (peter.furniss@arjuna.com), Mark Little (mark@arjuna.com), Malik Saheb (malik.saheb@arjuna.com)
  • Constructor Details

    • RecoveryEnablement

      public RecoveryEnablement()
      Constructor does the work as a result of being registered as an ORBPreInit class
  • Method Details

    • isNotANormalProcess

      public static void isNotANormalProcess()
      Deprecated.
      Only used by tests
      This static method is used by the RecoveryManager to suppress aspects of recovery enablement in it's own process, without requiring further property manipulations
    • isNormalProcess

      public static boolean isNormalProcess()
      Deprecated.
      Only used by tests
    • startRCservice

      public boolean startRCservice()
      Used by the RecoveryManager to start the recoverycoordinator service, using whatever orb-specific techniques are appropriate. This is placed here because it may need to set post-orbinitialisation properties, like the regular enabler.
      Specified by:
      startRCservice in interface RecoveryActivator
      Returns:
      true on success, false on failure
    • getRecoveryManagerTag

      public static String getRecoveryManagerTag()
      Return the RecoveryManager tag. This can be set by a property.