/** * 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 */ public static String makeId( Uid rcUid, Uid tranUid, Uid processUid, boolean isServerTransaction ) { RecoveryCoordinatorId id = new RecoveryCoordinatorId(rcUid, tranUid, processUid, isServerTransaction); return id.makeId(); }
/** * Implementation of IDL method: * <p> * Operation: <b>::CosTransactions::RecoveryCoordinator::replay_completion</b>. * <pre> * #pragma prefix "omg.org/CosTransactions/RecoveryCoordinator" * ::CosTransactions::Status replay_completion( * in ::CosTransactions::Resource r * ) * raises( * ::CosTransactions::NotPrepared * ); * </pre> * </p> * This method is used when the instance is used as a particular implementation * object (i.e. <i>not</i> as default servant). Delegates to the static * {@link #replay_completion(RecoveryCoordinatorId, Resource) replay_completion} * using the {@link RecoveryCoordinatorId} made in the constructor. */ public Status replay_completion ( Resource res ) throws SystemException, NotPrepared { return GenericRecoveryCoordinator.replay_completion(_id, res); }
/** * (re)construct a RecoveryCoordinator instance using the encoded information * in the parameter. The encoded information was (we hope) created using * {@link #makeId makeId} and has been passed around as part of the object key * in the RecoveryCoordinator IOR. */ public static GenericRecoveryCoordinator reconstruct(String encodedRCData) { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("GenericRecoveryCoordinator.reconstruct(" + encodedRCData + ")"); } RecoveryCoordinatorId id = RecoveryCoordinatorId.reconstruct(encodedRCData); if (id != null) { return new GenericRecoveryCoordinator(id); } else { // already traced return null; } }
RecoveryCoordinatorId recovCoId = RecoveryCoordinatorId.reconstruct(objectIdString); return GenericRecoveryCoordinator.replay_completion(recovCoId, res);
/** * 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. <i>not</i> as POA default servant) from * stringified data in RecoveryManager from data received in a * RecoveryCoordinator object key. * <p>Combines the parameters into a {@link RecoveryCoordinatorId}. */ public GenericRecoveryCoordinator (Uid RCUid, Uid actionUid, Uid processUid, boolean isServerTransaction) { _id = new RecoveryCoordinatorId(RCUid, actionUid, processUid, isServerTransaction); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("GenericRecoveryCoordinator "+_id+" constructed"); } }
String rcObjectId = GenericRecoveryCoordinator.makeId(RCUid, tranUid, processUid, isServerTransaction);
currentStatus = get_status(id._actionUid, id._originalProcessUid);
RecoveryCoordinatorId recovCoId = RecoveryCoordinatorId.reconstruct(objectIdString); return GenericRecoveryCoordinator.replay_completion(recovCoId, res);
/** * 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 */ public static String makeId( Uid rcUid, Uid tranUid, Uid processUid, boolean isServerTransaction ) { RecoveryCoordinatorId id = new RecoveryCoordinatorId(rcUid, tranUid, processUid, isServerTransaction); return id.makeId(); }
/** * (re)construct a RecoveryCoordinator instance using the encoded information * in the parameter. The encoded information was (we hope) created using * {@link #makeId makeId} and has been passed around as part of the object key * in the RecoveryCoordinator IOR. */ public static GenericRecoveryCoordinator reconstruct(String encodedRCData) { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.CONSTRUCTORS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_CRASH_RECOVERY, "GenericRecoveryCoordinator.reconstruct(" + encodedRCData + ")"); } RecoveryCoordinatorId id = RecoveryCoordinatorId.reconstruct(encodedRCData); if (id != null) { return new GenericRecoveryCoordinator(id); } else { // already traced return null; } }
/** * 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. <i>not</i> as POA default servant) from * stringified data in RecoveryManager from data received in a * RecoveryCoordinator object key. * <p>Combines the parameters into a {@link RecoveryCoordinatorId}. */ public GenericRecoveryCoordinator (Uid RCUid, Uid actionUid, Uid processUid, boolean isServerTransaction) { _id = new RecoveryCoordinatorId(RCUid, actionUid, processUid, isServerTransaction); if (jtsLogger.loggerI18N.isDebugEnabled()) { jtsLogger.loggerI18N.debug(DebugLevel.CONSTRUCTORS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_CRASH_RECOVERY, "com.arjuna.ats.internal.jts.recovery.recoverycoordinators.GenericRecoveryCoordinator_1", new Object[]{_id}); } }
String rcObjectId = GenericRecoveryCoordinator.makeId(RCUid, tranUid, processUid, isServerTransaction);
/** * Implementation of IDL method: * <p> * Operation: <b>::CosTransactions::RecoveryCoordinator::replay_completion</b>. * <pre> * #pragma prefix "omg.org/CosTransactions/RecoveryCoordinator" * ::CosTransactions::Status replay_completion( * in ::CosTransactions::Resource r * ) * raises( * ::CosTransactions::NotPrepared * ); * </pre> * </p> * This method is used when the instance is used as a particular implementation * object (i.e. <i>not</i> as default servant). Delegates to the static * {@link #replay_completion(RecoveryCoordinatorId, Resource) replay_completion} * using the {@link RecoveryCoordinatorId} made in the constructor. */ public Status replay_completion ( Resource res ) throws SystemException, NotPrepared { return GenericRecoveryCoordinator.replay_completion(_id, res); }
currentStatus = get_status(id._actionUid, id._originalProcessUid);
RecoveryCoordinatorId recovCoId = RecoveryCoordinatorId.reconstruct(objectIdString); return GenericRecoveryCoordinator.replay_completion(recovCoId, res);
return new RecoveryCoordinatorId (RCUid, actionUid, originalProcessUid, isServerTransaction); } else {
String rcObjectId = GenericRecoveryCoordinator.makeId(RCUid, tranUid, processUid, isServerTransaction);
return new RecoveryCoordinatorId (RCUid, actionUid, originalProcessUid, isServerTransaction); } else {