/** * get the status in the original process, given the uid of the contact * item (which is the uid of the process) */ public static Status get_status(Uid transactionUid, Uid itemUid) throws Inactive { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("StatusChecker.get_status(" + transactionUid + ", " + itemUid + ")"); } return _checker.checkOriginalStatus(transactionUid, itemUid, true); }
/** * find the IOR for the ArjunaFactory whose FactoryContactItem was saved with * this uid. It is possible this Uid was created after the last scan, so if * it isn't in the hashtable, look for real directly. */ private FactoryContactItem getItem (Uid uid) { FactoryContactItem theItem = null; theItem = getKnownItem(uid); if (theItem == null) { // not previously known - see if it exists now theItem = getNewItem(uid); if (theItem == null) { // if it's still null, either something has gone wrong // - how did it get in the recoverycoordkey when the // factory was unknown // or it's very old and been fully deleted jtsLogger.i18NLogger.warn_recovery_contact_StatusChecker_14(uid); // treat as long-dead process - return null } } return theItem; }
/** * */ public Status getOriginalStatus () { if (_recoveryStatus != RecoveryStatus.ACTIVATE_FAILED) { try { return StatusChecker.get_status(get_uid(), _originalProcessUid); } catch (Inactive ex) { // shouldn't happen! return Status.StatusUnknown; } } else { // if it can't be activated, we can't get the process uid return Status.StatusUnknown; } }
status = StatusChecker.get_current_status(actionUid, processUid);
status = StatusChecker.get_current_status(actionUid, processUid);
/** * find the IOR for the ArjunaFactory whose FactoryContactItem was saved with * this uid. It is possible this Uid was created after the last scan, so if * it isn't in the hashtable, look for real directly. */ private FactoryContactItem getItem (Uid uid) { FactoryContactItem theItem = null; theItem = getKnownItem(uid); if (theItem == null) { // not previously known - see if it exists now theItem = getNewItem(uid); if (theItem == null) { // if it's still null, either something has gone wrong // - how did it get in the recoverycoordkey when the // factory was unknown // or it's very old and been fully deleted jtsLogger.loggerI18N.warn("com.arjuna.ats.internal.jts.recovery.contact.StatusChecker_14", new Object[]{uid}); // treat as long-dead process - return null } } return theItem; }
/** * */ public Status getOriginalStatus () { if (_recoveryStatus != RecoveryStatus.ACTIVATE_FAILED) { try { return StatusChecker.get_status(get_uid(), _originalProcessUid); } catch (Inactive ex) { // shouldn't happen! return Status.StatusUnknown; } } else { // if it can't be activated, we can't get the process uid return Status.StatusUnknown; } }
/** * get the current status in the original process, given the uid of the contact * item (which is the uid of the process). Note that this method is used by the * GenericRecoveryCoordinator code only. */ public static Status get_current_status(Uid transactionUid, Uid itemUid) throws Inactive { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("StatusChecker.get_current_status(" + transactionUid + ", " + itemUid + ")"); } return _checker.checkOriginalStatus(transactionUid, itemUid, false); }
/** * Check the status of this transaction state, i.e., that represented by * get_uid and not getSavingUid */ public Status getOriginalStatus () { if (_recoveryStatus != RecoveryStatus.ACTIVATE_FAILED) { try { /* * Remember to get the status on the actual global transaction * and not on the local branch, i.e., use get_uid and not * getSavingUid */ return StatusChecker.get_status(get_uid(), _originalProcessUid); } catch (Inactive ex) { // shouldn't happen!! return Status.StatusUnknown; } } else { // if it can't be activated, we cant get the process uid return Status.StatusUnknown; } }
/** * get the status in the original process, given the uid of the contact * item (which is the uid of the process) */ public static Status get_status(Uid transactionUid, Uid itemUid) throws Inactive { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_CRASH_RECOVERY, "StatusChecker.get_status("+transactionUid+", "+itemUid+")"); } return _checker.checkOriginalStatus(transactionUid, itemUid, true); }
/** * Check the status of this transaction state, i.e., that represented by * get_uid and not getSavingUid */ public Status getOriginalStatus () { if (_recoveryStatus != RecoveryStatus.ACTIVATE_FAILED) { try { /* * Remember to get the status on the actual global transaction * and not on the local branch, i.e., use get_uid and not * getSavingUid */ return StatusChecker.get_status(get_uid(), _originalProcessUid); } catch (Inactive ex) { // shouldn't happen!! return Status.StatusUnknown; } } else { // if it can't be activated, we cant get the process uid return Status.StatusUnknown; } }
/** * get the current status in the original process, given the uid of the contact * item (which is the uid of the process). Note that this method is used by the * GenericRecoveryCoordinator code only. */ public static Status get_current_status(Uid transactionUid, Uid itemUid) throws Inactive { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_CRASH_RECOVERY, "StatusChecker.get_current_status("+transactionUid+", "+itemUid+")"); } return _checker.checkOriginalStatus(transactionUid, itemUid, false); }
/** * Check the status of this transaction state, i.e., that represented by * get_uid and not getSavingUid */ public Status getOriginalStatus () { if (_recoveryStatus != RecoveryStatus.ACTIVATE_FAILED) { try { /* * Remember to get the status on the actual global transaction * and not on the local branch, i.e., use get_uid and not * getSavingUid */ return StatusChecker.get_status(get_uid(), _originalProcessUid); } catch (Inactive ex) { // shouldn't happen!! return Status.StatusUnknown; } } else { // if it can't be activated, we cant get the process uid return Status.StatusUnknown; } }