public void periodicWorkSecondPass() { if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("BAParticipantRecoveryModule: Second pass"); } processParticipantsStatus() ; }
private void processParticipantsStatus() { if (_participantUidVector != null) { // Process the Vector of transaction Uids Enumeration participantUidEnum = _participantUidVector.elements() ; while ( participantUidEnum.hasMoreElements() ) { Uid currentUid = (Uid) participantUidEnum.nextElement(); try { if ( _recoveryStore.currentState( currentUid, _participantType) != StateStatus.OS_UNKNOWN ) { doRecoverParticipant( currentUid ) ; } } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_participant_ba_BAParticipantRecoveryModule_3(currentUid, ex); } } } // now get the BA recovery manager to try to activate recovered participants XTSBARecoveryManager.getRecoveryManager().recoverParticipants(); }
/** * This is called periodically by the RecoveryManager */ public void periodicWorkFirstPass() { // Transaction type boolean BAParticipants = false ; // uids per transaction type InputObjectState acc_uids = new InputObjectState() ; try { if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("BAParticipantRecoveryModule: first pass"); } BAParticipants = _recoveryStore.allObjUids(_participantType, acc_uids ); } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_participant_ba_BAParticipantRecoveryModule_1(ex); } if ( BAParticipants ) { _participantUidVector = processParticipants( acc_uids ) ; } }
private void processParticipantsStatus() { if (_participantUidVector != null) { // Process the Vector of transaction Uids Enumeration participantUidEnum = _participantUidVector.elements() ; while ( participantUidEnum.hasMoreElements() ) { Uid currentUid = (Uid) participantUidEnum.nextElement(); try { if ( _recoveryStore.currentState( currentUid, _participantType) != StateStatus.OS_UNKNOWN ) { doRecoverParticipant( currentUid ) ; } } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_participant_ba_BAParticipantRecoveryModule_3(currentUid, ex); } } } // now get the BA recovery manager to try to activate recovered participants XTSBARecoveryManager.getRecoveryManager().recoverParticipants(); }
/** * This is called periodically by the RecoveryManager */ public void periodicWorkFirstPass() { // Transaction type boolean BAParticipants = false ; // uids per transaction type InputObjectState acc_uids = new InputObjectState() ; try { if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("BAParticipantRecoveryModule: first pass"); } BAParticipants = _recoveryStore.allObjUids(_participantType, acc_uids ); } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_participant_ba_BAParticipantRecoveryModule_1(ex); } if ( BAParticipants ) { _participantUidVector = processParticipants( acc_uids ) ; } }
public void periodicWorkSecondPass() { if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("BAParticipantRecoveryModule: Second pass"); } processParticipantsStatus() ; }
private void processParticipantsStatus() { if (_participantUidVector != null) { // Process the Vector of transaction Uids Enumeration participantUidEnum = _participantUidVector.elements() ; while ( participantUidEnum.hasMoreElements() ) { Uid currentUid = (Uid) participantUidEnum.nextElement(); try { if ( _recoveryStore.currentState( currentUid, _participantType) != StateStatus.OS_UNKNOWN ) { doRecoverParticipant( currentUid ) ; } } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_participant_ba_BAParticipantRecoveryModule_3(currentUid, ex); } } } // now get the BA recovery manager to try to activate recovered participants XTSBARecoveryManager.getRecoveryManager().recoverParticipants(); }
/** * This is called periodically by the RecoveryManager */ public void periodicWorkFirstPass() { // Transaction type boolean BAParticipants = false ; // uids per transaction type InputObjectState acc_uids = new InputObjectState() ; try { if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("BAParticipantRecoveryModule: first pass"); } BAParticipants = _recoveryStore.allObjUids(_participantType, acc_uids ); } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_participant_ba_BAParticipantRecoveryModule_1(ex); } if ( BAParticipants ) { _participantUidVector = processParticipants( acc_uids ) ; } }
public void periodicWorkSecondPass() { if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("BAParticipantRecoveryModule: Second pass"); } processParticipantsStatus() ; }