/** * 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(); }
/** * 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(); }
/** * 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"); } }
/** * 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}); } }
return new RecoveryCoordinatorId (RCUid, actionUid, originalProcessUid, isServerTransaction); } else {
return new RecoveryCoordinatorId (RCUid, actionUid, originalProcessUid, isServerTransaction); } else {