gpt4 book ai didi

org.jboss.jbossts.xts.recovery.participant.at.XTSATRecoveryManager.getRecoveryManager()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 09:16:40 28 4
gpt4 key购买 nike

本文整理了Java中org.jboss.jbossts.xts.recovery.participant.at.XTSATRecoveryManager.getRecoveryManager()方法的一些代码示例,展示了XTSATRecoveryManager.getRecoveryManager()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XTSATRecoveryManager.getRecoveryManager()方法的具体详情如下:
包路径:org.jboss.jbossts.xts.recovery.participant.at.XTSATRecoveryManager
类名称:XTSATRecoveryManager
方法名:getRecoveryManager

XTSATRecoveryManager.getRecoveryManager介绍

[英]obtain a reference to the WS-AT recovery manager singleton instance
[中]获取对WS-AT recovery manager单例实例的引用

代码示例

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

/**
   * 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 XTSATRecoveryManager.getRecoveryManager().isCoordinatorRecoveryStarted();
  }
}

代码示例来源:origin: org.jboss.jbossts.xts/ws-t11

/**
   * 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 XTSATRecoveryManager.getRecoveryManager().isCoordinatorRecoveryStarted();
  }
}

代码示例来源:origin: org.jboss.jbossts.xts/recovery

/**
 * called by the service shutdown code after the recovery module is removed from the recovery managers
 * module list
 */
public void uninstall()
{
  XTSATRecoveryManager.getRecoveryManager().unregisterRecoveryModule(subordinateRecoveryModule);
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

/**
 * called by the service shutdown code after the recovery module is removed from the recovery managers
 * module list
 */
public void uninstall()
{
  XTSATRecoveryManager.getRecoveryManager().unregisterRecoveryModule(subordinateRecoveryModule);
}

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

/**
 * called by the service shutdown code after the recovery module is removed from the recovery managers
 * module list
 */
public void uninstall()
{
  XTSATRecoveryManager.getRecoveryManager().unregisterRecoveryModule(subordinateRecoveryModule);
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

/**
   * 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 XTSATRecoveryManager.getRecoveryManager().isCoordinatorRecoveryStarted();
  }
}

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

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_at_SubordinateATCoordinatorRecoveryModule_3(currentUid, ex);
    }
  }
  XTSATRecoveryManager.getRecoveryManager().setSubordinateCoordinatorRecoveryStarted();
}

代码示例来源:origin: org.jboss.jbossts.xts/recovery

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_at_SubordinateATCoordinatorRecoveryModule_3(currentUid, ex);
    }
  }
  XTSATRecoveryManager.getRecoveryManager().setSubordinateCoordinatorRecoveryStarted();
}

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

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_at_ATCoordinatorRecoveryModule_3(currentUid, ex);
    }
  }
  XTSATRecoveryManager.getRecoveryManager().setCoordinatorRecoveryStarted();
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

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_at_ATCoordinatorRecoveryModule_3(currentUid, ex);
    }
  }
  XTSATRecoveryManager.getRecoveryManager().setCoordinatorRecoveryStarted();
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

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_at_SubordinateATCoordinatorRecoveryModule_3(currentUid, ex);
    }
  }
  XTSATRecoveryManager.getRecoveryManager().setSubordinateCoordinatorRecoveryStarted();
}

代码示例来源:origin: org.jboss.jbossts.xts/recovery

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_at_ATCoordinatorRecoveryModule_3(currentUid, ex);
    }
  }
  XTSATRecoveryManager.getRecoveryManager().setCoordinatorRecoveryStarted();
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

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();
}

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

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();
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

/**
 * 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
  XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
  if (atRecoveryManager == null) {
    atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
    XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
  }
  
  Implementations.install();
}

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

/**
 * 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
  XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
  if (atRecoveryManager == null) {
    atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
    XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
  }
  
  Implementations.install();
}

代码示例来源:origin: org.jboss.jbossts.xts/recovery

/**
 * 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
  XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
  if (atRecoveryManager == null) {
    atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
    XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
  }
  
  Implementations.install();
}

代码示例来源:origin: org.jboss.jbossts.xts/recovery

/**
 * 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
  XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
  if (atRecoveryManager == null) {
    atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
    XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
  }
  // Subordinate Coordinators register durable participants with their parent transaction so
  // we need to add an XTSATRecoveryModule which knows about the registered participants
  subordinateRecoveryModule = new XTSATSubordinateRecoveryModule();
  
  atRecoveryManager.registerRecoveryModule(subordinateRecoveryModule);
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

/**
 * 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
  XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
  if (atRecoveryManager == null) {
    atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
    XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
  }
  // Subordinate Coordinators register durable participants with their parent transaction so
  // we need to add an XTSATRecoveryModule which knows about the registered participants
  subordinateRecoveryModule = new XTSATSubordinateRecoveryModule();
  
  atRecoveryManager.registerRecoveryModule(subordinateRecoveryModule);
}

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

/**
 * 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
  XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
  if (atRecoveryManager == null) {
    atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
    XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
  }
  // Subordinate Coordinators register durable participants with their parent transaction so
  // we need to add an XTSATRecoveryModule which knows about the registered participants
  subordinateRecoveryModule = new XTSATSubordinateRecoveryModule();
  
  atRecoveryManager.registerRecoveryModule(subordinateRecoveryModule);
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com