/** * 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("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.logger.isDebugEnabled()) { jtsLogger.logger.debug("GenericRecoveryCoordinator "+_id+" constructed"); } }
/** * (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}); } }
/** * 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(); }
RecoveryCoordinatorId recovCoId = RecoveryCoordinatorId.reconstruct(objectIdString);
return new RecoveryCoordinatorId (RCUid, actionUid, originalProcessUid, isServerTransaction); } else {
RecoveryCoordinatorId recovCoId = RecoveryCoordinatorId.reconstruct(objectIdString);
return new RecoveryCoordinatorId (RCUid, actionUid, originalProcessUid, isServerTransaction); } else {
RecoveryCoordinatorId recovCoId = RecoveryCoordinatorId.reconstruct(objectIdString);