public void periodicWorkSecondPass() { if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("ATParticipantRecoveryModule: Second pass"); } processParticipantsStatus() ; }
/** * This is called periodically by the RecoveryManager */ public void periodicWorkFirstPass() { // Transaction type boolean ATParticipants = false ; // uids per transaction type InputObjectState acc_uids = new InputObjectState() ; try { if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("ATParticipantRecoveryModule: first pass"); } ATParticipants = _recoveryStore.allObjUids(_participantType, acc_uids ); } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_participant_at_ATParticipantRecoveryModule_1(ex); } if ( ATParticipants ) { _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_at_ATParticipantRecoveryModule_3(currentUid, ex); } } } // now get the AT recovery manager to try to activate recovered participants XTSATRecoveryManager.getRecoveryManager().recoverParticipants(); }
/** * This is called periodically by the RecoveryManager */ public void periodicWorkFirstPass() { // Transaction type boolean ATParticipants = false ; // uids per transaction type InputObjectState acc_uids = new InputObjectState() ; try { if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("ATParticipantRecoveryModule: first pass"); } ATParticipants = _recoveryStore.allObjUids(_participantType, acc_uids ); } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_participant_at_ATParticipantRecoveryModule_1(ex); } if ( ATParticipants ) { _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_at_ATParticipantRecoveryModule_3(currentUid, ex); } } } // now get the AT recovery manager to try to activate recovered participants XTSATRecoveryManager.getRecoveryManager().recoverParticipants(); }
public void periodicWorkSecondPass() { if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("ATParticipantRecoveryModule: Second pass"); } processParticipantsStatus() ; }
/** * This is called periodically by the RecoveryManager */ public void periodicWorkFirstPass() { // Transaction type boolean ATParticipants = false ; // uids per transaction type InputObjectState acc_uids = new InputObjectState() ; try { if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("ATParticipantRecoveryModule: first pass"); } ATParticipants = _recoveryStore.allObjUids(_participantType, acc_uids ); } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_participant_at_ATParticipantRecoveryModule_1(ex); } if ( ATParticipants ) { _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_at_ATParticipantRecoveryModule_3(currentUid, ex); } } } // now get the AT recovery manager to try to activate recovered participants XTSATRecoveryManager.getRecoveryManager().recoverParticipants(); }
public void periodicWorkSecondPass() { if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("ATParticipantRecoveryModule: Second pass"); } processParticipantsStatus() ; }