Class RecoveryEnablement
java.lang.Object
com.arjuna.ats.internal.jts.orbspecific.recovery.RecoveryEnablement
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionConstructor does the work as a result of being registered as an ORBPreInit class -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Return the RecoveryManager tag.static boolean
Deprecated.Only used by testsstatic void
Deprecated.Only used by testsboolean
Used by the RecoveryManager to start the recoverycoordinator service, using whatever orb-specific techniques are appropriate.
-
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 testsThis 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 interfaceRecoveryActivator
- Returns:
- true on success, false on failure
-
getRecoveryManagerTag
Return the RecoveryManager tag. This can be set by a property.
-