Class GenericRecoveryCoordinator
java.lang.Object
org.omg.PortableServer.Servant
org.omg.CosTransactions.RecoveryCoordinatorPOA
com.arjuna.ats.internal.jts.orbspecific.recovery.recoverycoordinators.GenericRecoveryCoordinator
- All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler
,RecoveryCoordinatorOperations
- Direct Known Subclasses:
JavaIdlRCDefaultServant
This provides the ORB-independent recovery coordinator
functionality. The ORB-specific implementations delegate their work
to this.
- Version:
- $Id: GenericRecoveryCoordinator.java 2342 2006-03-30 13:06:17Z $
- Author:
- Dave Ingham(dave.ingham@arjuna.com), Peter Furniss, Mark Little (mark.little@arjuna.com) Malik SAHEB (malik.saheb@arjuna.com
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected constructor used by default servant derived class (with POA orbs).GenericRecoveryCoordinator
(Uid RCUid, Uid actionUid, Uid processUid, boolean isServerTransaction) Normal constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Construct a string, to be used somehow in the objectkey (probably) of a RecoveryCoordinator reference.static GenericRecoveryCoordinator
reconstruct
(String encodedRCData) (re)construct a RecoveryCoordinator instance using the encoded information in the parameter.protected static Status
Respond to a replay_completion request for the RecoveryCoordinator identified by parameter id.Implementation of IDL method:Methods inherited from class org.omg.CosTransactions.RecoveryCoordinatorPOA
_all_interfaces, _invoke, _this, _this
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
-
Constructor Details
-
GenericRecoveryCoordinator
public GenericRecoveryCoordinator(Uid RCUid, Uid actionUid, Uid processUid, boolean isServerTransaction) Normal constructor. Used both for creating a RecoveryCoordinator in the same process as the Coordinator (where this is necessary) and when reactivating a RecoveryCoordinator as an implementation instance (i.e. not as POA default servant) from stringified data in RecoveryManager from data received in a RecoveryCoordinator object key.Combines the parameters into a
RecoveryCoordinatorId
. -
GenericRecoveryCoordinator
protected GenericRecoveryCoordinator()protected constructor used by default servant derived class (with POA orbs). When used a default servant, there is only one GenericRecoveryCoordinator instance, whose _id field is null.
-
-
Method Details
-
replay_completion
Implementation of IDL method:Operation: ::CosTransactions::RecoveryCoordinator::replay_completion.
#pragma prefix "omg.org/CosTransactions/RecoveryCoordinator" ::CosTransactions::Status replay_completion( in ::CosTransactions::Resource r ) raises( ::CosTransactions::NotPrepared );
This method is used when the instance is used as a particular implementation object (i.e. not as default servant). Delegates to the staticreplay_completion
using theRecoveryCoordinatorId
made in the constructor.- Throws:
org.omg.CORBA.SystemException
NotPrepared
-
replay_completion
protected static Status replay_completion(RecoveryCoordinatorId id, Resource res) throws org.omg.CORBA.SystemException, NotPrepared Respond to a replay_completion request for the RecoveryCoordinator identified by parameter id.- Throws:
org.omg.CORBA.SystemException
NotPrepared
-
makeId
Construct a string, to be used somehow in the objectkey (probably) of a RecoveryCoordinator reference. This will be deconstructed in the reconstruct() which is passed such a string, to remake the necessary RecoveryCoordinator when a replay_completion is received for it. Put here to make it in the same class as the deconstruction -
reconstruct
(re)construct a RecoveryCoordinator instance using the encoded information in the parameter. The encoded information was (we hope) created usingmakeId
and has been passed around as part of the object key in the RecoveryCoordinator IOR.
-