/** * Tests if there may be unknown coordinator entries in the recovery log. * * @return false if there may be unknown coordinator entries in the recovery log. */ private static boolean areRecoveryLogEntriesAccountedFor() { return (XTSBARecoveryManager.getRecoveryManager().isCoordinatorRecoveryStarted() && XTSBARecoveryManager.getRecoveryManager().isSubordinateCoordinatorRecoveryStarted()); } }
/** * Tests if there may be unknown coordinator entries in the recovery log. * * @return false if there may be unknown coordinator entries in the recovery log. */ private static boolean areRecoveryLogEntriesAccountedFor() { return (XTSBARecoveryManager.getRecoveryManager().isCoordinatorRecoveryStarted() && XTSBARecoveryManager.getRecoveryManager().isSubordinateCoordinatorRecoveryStarted()); } }
/** * called by the service shutdown code after the recovery module is removed from the recovery managers * module list */ public void uninstall() { XTSBARecoveryManager.getRecoveryManager().unregisterRecoveryModule(subordinateRecoveryModule); }
/** * Tests if there may be unknown coordinator entries in the recovery log. * * @return false if there may be unknown coordinator entries in the recovery log. */ private static boolean areRecoveryLogEntriesAccountedFor() { return (XTSBARecoveryManager.getRecoveryManager().isCoordinatorRecoveryStarted() && XTSBARecoveryManager.getRecoveryManager().isSubordinateCoordinatorRecoveryStarted()); } }
/** * called by the service shutdown code after the recovery module is removed from the recovery managers * module list */ public void uninstall() { XTSBARecoveryManager.getRecoveryManager().unregisterRecoveryModule(subordinateRecoveryModule); }
/** * called by the service shutdown code after the recovery module is removed from the recovery managers * module list */ public void uninstall() { XTSBARecoveryManager.getRecoveryManager().unregisterRecoveryModule(subordinateRecoveryModule); }
/** * Tests if there may be unknown coordinator entries in the recovery log. * * @return false if there may be unknown coordinator entries in the recovery log. */ private static boolean areRecoveryLogEntriesAccountedFor() { return (XTSBARecoveryManager.getRecoveryManager().isCoordinatorRecoveryStarted() && XTSBARecoveryManager.getRecoveryManager().isSubordinateCoordinatorRecoveryStarted()); } }
/** * Tests if there may be unknown coordinator entries in the recovery log. * * @return false if there may be unknown coordinator entries in the recovery log. */ private static boolean areRecoveryLogEntriesAccountedFor() { return (XTSBARecoveryManager.getRecoveryManager().isCoordinatorRecoveryStarted() && XTSBARecoveryManager.getRecoveryManager().isSubordinateCoordinatorRecoveryStarted()); } }
/** * Tests if there may be unknown coordinator entries in the recovery log. * * @return false if there may be unknown coordinator entries in the recovery log. */ private static boolean areRecoveryLogEntriesAccountedFor() { return (XTSBARecoveryManager.getRecoveryManager().isCoordinatorRecoveryStarted() && XTSBARecoveryManager.getRecoveryManager().isSubordinateCoordinatorRecoveryStarted()); } }
private void processTransactionsStatus() { // Process the Vector of transaction Uids Enumeration transactionUidEnum = _transactionUidVector.elements() ; while ( transactionUidEnum.hasMoreElements() ) { Uid currentUid = (Uid) transactionUidEnum.nextElement(); try { if ( _recoveryStore.currentState( currentUid, _transactionType ) != StateStatus.OS_UNKNOWN ) { doRecoverTransaction( currentUid ) ; } } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_coordinator_ba_SubordinateBACoordinatorRecoveryModule_3(currentUid, ex); } } XTSBARecoveryManager.getRecoveryManager().setSubordinateCoordinatorRecoveryStarted(); }
private void processTransactionsStatus() { // Process the Vector of transaction Uids Enumeration transactionUidEnum = _transactionUidVector.elements() ; while ( transactionUidEnum.hasMoreElements() ) { Uid currentUid = (Uid) transactionUidEnum.nextElement(); try { if ( _recoveryStore.currentState( currentUid, _transactionType ) != StateStatus.OS_UNKNOWN ) { doRecoverTransaction( currentUid ) ; } } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_coordinator_ba_BACoordinatorRecoveryModule_3(currentUid, ex); } } XTSBARecoveryManager.getRecoveryManager().setCoordinatorRecoveryStarted(); }
private void processTransactionsStatus() { // Process the Vector of transaction Uids Enumeration transactionUidEnum = _transactionUidVector.elements() ; while ( transactionUidEnum.hasMoreElements() ) { Uid currentUid = (Uid) transactionUidEnum.nextElement(); try { if ( _recoveryStore.currentState( currentUid, _transactionType ) != StateStatus.OS_UNKNOWN ) { doRecoverTransaction( currentUid ) ; } } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_coordinator_ba_BACoordinatorRecoveryModule_3(currentUid, ex); } } XTSBARecoveryManager.getRecoveryManager().setCoordinatorRecoveryStarted(); }
private void processTransactionsStatus() { // Process the Vector of transaction Uids Enumeration transactionUidEnum = _transactionUidVector.elements() ; while ( transactionUidEnum.hasMoreElements() ) { Uid currentUid = (Uid) transactionUidEnum.nextElement(); try { if ( _recoveryStore.currentState( currentUid, _transactionType ) != StateStatus.OS_UNKNOWN ) { doRecoverTransaction( currentUid ) ; } } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_coordinator_ba_BACoordinatorRecoveryModule_3(currentUid, ex); } } XTSBARecoveryManager.getRecoveryManager().setCoordinatorRecoveryStarted(); }
private void processTransactionsStatus() { // Process the Vector of transaction Uids Enumeration transactionUidEnum = _transactionUidVector.elements() ; while ( transactionUidEnum.hasMoreElements() ) { Uid currentUid = (Uid) transactionUidEnum.nextElement(); try { if ( _recoveryStore.currentState( currentUid, _transactionType ) != StateStatus.OS_UNKNOWN ) { doRecoverTransaction( currentUid ) ; } } catch ( ObjectStoreException ex ) { RecoveryLogger.i18NLogger.warn_coordinator_ba_SubordinateBACoordinatorRecoveryModule_3(currentUid, ex); } } XTSBARecoveryManager.getRecoveryManager().setSubordinateCoordinatorRecoveryStarted(); }
/** * called by the service startup code before the recovery module is added to the recovery managers * module list */ public void install() { // the manager is needed by both the participant or the coordinator recovery modules so whichever // one gets there first creates it. No synchronization is needed as modules are only ever // installed in a single thread XTSBARecoveryManager baRecoveryManager = XTSBARecoveryManager.getRecoveryManager(); if (baRecoveryManager == null) { baRecoveryManager = new XTSBARecoveryManagerImple(_recoveryStore); XTSBARecoveryManager.setRecoveryManager(baRecoveryManager); } Implementations.install(); }
/** * called by the service startup code before the recovery module is added to the recovery managers * module list */ public void install() { // the manager is needed by both the participant or the coordinator recovery modules so whichever // one gets there first creates it. No synchronization is needed as modules are only ever // installed in a single thread XTSBARecoveryManager baRecoveryManager = XTSBARecoveryManager.getRecoveryManager(); if (baRecoveryManager == null) { baRecoveryManager = new XTSBARecoveryManagerImple(_recoveryStore); XTSBARecoveryManager.setRecoveryManager(baRecoveryManager); } Implementations.install(); }
/** * called by the service startup code before the recovery module is added to the recovery managers * module list */ public void install() { // the manager is needed by both the participant or the coordinator recovery modules so whichever // one gets there first creates it. No synchronization is needed as modules are only ever // installed in a single thread XTSBARecoveryManager baRecoveryManager = XTSBARecoveryManager.getRecoveryManager(); if (baRecoveryManager == null) { baRecoveryManager = new XTSBARecoveryManagerImple(_recoveryStore); XTSBARecoveryManager.setRecoveryManager(baRecoveryManager); } Implementations.install(); }
/** * called by the service startup code before the recovery module is added to the recovery managers * module list */ public void install() { // the manager is needed by both the participant or the coordinator recovery modules so whichever // one gets there first creates it. No synchronization is needed as modules are only ever // installed in a single thread XTSBARecoveryManager baRecoveryManager = XTSBARecoveryManager.getRecoveryManager(); if (baRecoveryManager == null) { baRecoveryManager = new XTSBARecoveryManagerImple(_recoveryStore); XTSBARecoveryManager.setRecoveryManager(baRecoveryManager); } // Subordinate Coordinators register durable participants with their parent transaction so // we need to add an XTSBARecoveryModule which knows about the registered participants subordinateRecoveryModule = new XTSBASubordinateRecoveryModule(); baRecoveryManager.registerRecoveryModule(subordinateRecoveryModule); }
/** * called by the service startup code before the recovery module is added to the recovery managers * module list */ public void install() { // the manager is needed by both the participant or the coordinator recovery modules so whichever // one gets there first creates it. No synchronization is needed as modules are only ever // installed in a single thread XTSBARecoveryManager baRecoveryManager = XTSBARecoveryManager.getRecoveryManager(); if (baRecoveryManager == null) { baRecoveryManager = new XTSBARecoveryManagerImple(_recoveryStore); XTSBARecoveryManager.setRecoveryManager(baRecoveryManager); } // Subordinate Coordinators register durable participants with their parent transaction so // we need to add an XTSBARecoveryModule which knows about the registered participants subordinateRecoveryModule = new XTSBASubordinateRecoveryModule(); baRecoveryManager.registerRecoveryModule(subordinateRecoveryModule); }
/** * called by the service startup code before the recovery module is added to the recovery managers * module list */ public void install() { // the manager is needed by both the participant or the coordinator recovery modules so whichever // one gets there first creates it. No synchronization is needed as modules are only ever // installed in a single thread XTSBARecoveryManager baRecoveryManager = XTSBARecoveryManager.getRecoveryManager(); if (baRecoveryManager == null) { baRecoveryManager = new XTSBARecoveryManagerImple(_recoveryStore); XTSBARecoveryManager.setRecoveryManager(baRecoveryManager); } // Subordinate Coordinators register durable participants with their parent transaction so // we need to add an XTSBARecoveryModule which knows about the registered participants subordinateRecoveryModule = new XTSBASubordinateRecoveryModule(); baRecoveryManager.registerRecoveryModule(subordinateRecoveryModule); }