gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-19 08:48:40 27 4
gpt4 key购买 nike

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

XTSATRecoveryManager.isCoordinatorRecoveryStarted介绍

[英]test whether the first AT coordinator recovery scan has completed. this indicates whether there may or may not still be unknown AT transcation records on disk. If the first scan has not yet completed then a prepare message for an unknown participant must be dropped. If it has then a perpare for an unknown participant must be acknowledged with a rollback message.
[中]测试第一次AT coordinator恢复扫描是否已完成。这表明磁盘上的Transaction记录是否仍然未知。如果第一次扫描尚未完成,则必须删除针对未知参与者的准备消息。如果有未知参与者的准备,则必须通过回滚消息确认。

代码示例

代码示例来源: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/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/jbossxts-api

if (!recoveryManager.isCoordinatorRecoveryStarted()) {
  return null;

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

/**
 * recreate a wrapper for a bridged-to WS-AT 1.1 transaction recovered from the log
 * @param identifier the identifier of a previously created bridged-to transaction
 * @return a wrapper for the bridged-to transaction or null if it may still be awaiting recovery
 * @throws UnknownTransactionException if recovery has been performed and no transaction with the
 * given identifier has been found in the log
 */
public static BridgeWrapper recover(String identifier) throws UnknownTransactionException
{
  SubordinateATCoordinator coordinator = SubordinateATCoordinator.getRecoveredCoordinator(identifier);
  if (coordinator != null) {
    BridgeWrapper bridgeWrapper = new BridgeWrapper();
    bridgeWrapper.context = null;
    bridgeWrapper.coordinator =coordinator;
    bridgeWrapper.id = identifier;
    bridgeWrapper.subordinateType = coordinator.getSubordinateType();
    return bridgeWrapper;
  } else {
    XTSATRecoveryManager recoveryManager = XTSATRecoveryManager.getRecoveryManager();
    if (recoveryManager != null && recoveryManager.isCoordinatorRecoveryStarted()) {
      throw new UnknownTransactionException();
    } else {
      return null;
    }
  }
}

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