gpt4 book ai didi

com.arjuna.ats.jta.utils.XAHelper.xidToString()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 10:23:05 27 4
gpt4 key购买 nike

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

XAHelper.xidToString介绍

[英]get a string representing anyones Xid similar too, but not the same as OTS_Transaction/xa/XID.toString()
[中]获取一个表示任意人Xid的字符串,该字符串也与OTS_Transaction/xa/Xid类似,但与OTS_Transaction/xa/Xid不同。toString()

代码示例

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

/**
 * Commit the one phase resource.
 * @return TwoPhaseOutcome.FINISH_OK or TwoPhaseOutcome.FINISH_ERROR
 */
public int rollback()
{
  try
  {
    xaResource.rollback(xid) ;
    return TwoPhaseOutcome.FINISH_OK ;
  }
  catch (final XAException xae)
  {
    jtaLogger.i18NLogger.warn_resources_arjunacore_XAOnePhaseResource_rollbackexception(XAHelper.xidToString(xid), xae);
  }
  catch (final Throwable ex)
  {
    if (jtaLogger.logger.isTraceEnabled()) {
      jtaLogger.logger.trace("XAOnePhaseResource.rollback(" + xid + ") " + ex.getMessage());
    }
  }
  return TwoPhaseOutcome.FINISH_ERROR ;
}

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

jtaLogger.i18NLogger.warn_resources_arjunacore_rollbackerror(XAHelper.xidToString(xid),
    xaResource.toString(), XAHelper.printXAErrorCode(e), e);

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

/**
 * The participant should make permanent the work that it controls.
 *
 * @throws WrongStateException
 * @throws SystemException
 */
public void commit() throws WrongStateException, SystemException
{
  txbridgeLogger.logger.trace("BridgeDurableParticipant.commit(Xid="+xid+")");
  try
  {
    xaTerminator.commit(xid, false);
    txbridgeLogger.logger.trace("commit on Xid="+xid+" OK");
  }
  catch (XAException e)
  {
    txbridgeLogger.i18NLogger.error_ibdp_commitfailed(XAHelper.xidToString(xid), e);
  }
  finally
  {
    cleanupRefs();
  }
}

代码示例来源:origin: org.jboss.narayana.jta/jta

if (jtaLogger.logger.isTraceEnabled()) {
  jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + xae.getMessage());
jtaLogger.i18NLogger.warn_resources_arjunacore_opcerror(XAHelper.xidToString(xid),
    xaResource.toString(), XAHelper.printXAErrorCode(xae), xae);
String xidString = xid == null ? "<  >" : XAHelper.xidToString(xid);
String resourceString = xaResource == null ? "null XA resource" : xaResource.toString();
if (jtaLogger.logger.isTraceEnabled()) {
  jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + ex.getMessage());
  if (jtaLogger.logger.isTraceEnabled()) {
    jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") called forget and got " + ex.getMessage());

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

if (jtaLogger.logger.isTraceEnabled()) {
  jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + xae.getMessage());
jtaLogger.i18NLogger.warn_resources_arjunacore_opcerror(XAHelper.xidToString(xid),
    xaResource.toString(), XAHelper.printXAErrorCode(xae), xae);
String xidString = xid == null ? "<  >" : XAHelper.xidToString(xid);
String resourceString = xaResource == null ? "null XA resource" : xaResource.toString();
if (jtaLogger.logger.isTraceEnabled()) {
  jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + ex.getMessage());
  if (jtaLogger.logger.isTraceEnabled()) {
    jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") called forget and got " + ex.getMessage());

代码示例来源:origin: org.jboss.narayana.jta/jta

/**
 * Commit the one phase resource.
 * @return TwoPhaseOutcome.FINISH_OK or TwoPhaseOutcome.FINISH_ERROR
 */
public int rollback()
{
  try
  {
    xaResource.rollback(xid) ;
    return TwoPhaseOutcome.FINISH_OK ;
  }
  catch (final XAException xae)
  {
    addDeferredThrowable(xae);
    jtaLogger.i18NLogger.warn_resources_arjunacore_XAOnePhaseResource_rollbackexception(XAHelper.xidToString(xid), xae);
  }
  catch (final Throwable ex)
  {
    if (jtaLogger.logger.isTraceEnabled()) {
      jtaLogger.logger.trace("XAOnePhaseResource.rollback(" + xid + ") " + ex.getMessage());
    }
  }
  return TwoPhaseOutcome.FINISH_ERROR ;
}

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

/**
 * The participant should undo the work that it controls. The participant
 * will then return an indication of whether or not it succeeded..
 *
 * @throws WrongStateException
 * @throws SystemException
 */
public void rollback() throws WrongStateException, SystemException
{
  txbridgeLogger.logger.trace("BridgeDurableParticipant.rollback(Xid="+xid+")");
  try
  {
    xaTerminator.rollback(xid);
    txbridgeLogger.logger.trace("rollback on Xid="+xid+" OK");
  }
  catch (XAException e)
  {
    txbridgeLogger.i18NLogger.error_ibdp_rollbackfailed(XAHelper.xidToString(xid), e);
  }
  finally
  {
    cleanupRefs();
  }
}

代码示例来源:origin: jbosstm/narayana

jtaLogger.i18NLogger.warn_resources_arjunacore_rollbackerror(XAHelper.xidToString(xid),
    xaResource.toString(), XAHelper.printXAErrorCode(e), e);

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

if (jtaLogger.logger.isTraceEnabled()) {
  jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + xae.getMessage());
jtaLogger.i18NLogger.warn_resources_arjunacore_opcerror(XAHelper.xidToString(xid),
    xaResource.toString(), XAHelper.printXAErrorCode(xae), xae);
String xidString = xid == null ? "<  >" : XAHelper.xidToString(xid);
String resourceString = xaResource == null ? "null XA resource" : xaResource.toString();
if (jtaLogger.logger.isTraceEnabled()) {
  jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + ex.getMessage());
  if (jtaLogger.logger.isTraceEnabled()) {
    jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") called forget and got " + ex.getMessage());

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

/**
 * Commit the one phase resource.
 * @return TwoPhaseOutcome.FINISH_OK or TwoPhaseOutcome.FINISH_ERROR
 */
public int rollback()
{
  try
  {
    xaResource.rollback(xid) ;
    return TwoPhaseOutcome.FINISH_OK ;
  }
  catch (final XAException xae)
  {
    addDeferredThrowable(xae);
    jtaLogger.i18NLogger.warn_resources_arjunacore_XAOnePhaseResource_rollbackexception(XAHelper.xidToString(xid), xae);
  }
  catch (final Throwable ex)
  {
    if (jtaLogger.logger.isTraceEnabled()) {
      jtaLogger.logger.trace("XAOnePhaseResource.rollback(" + xid + ") " + ex.getMessage());
    }
  }
  return TwoPhaseOutcome.FINISH_ERROR ;
}

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

/**
 * Called by the RecoveryManager RECOVERY_BACKOFF_PERIOD seconds
 * after the completion of the first pass
 */
@Override
public void periodicWorkSecondPass()
{
  txbridgeLogger.logger.trace("InboundBridgeRecoveryManager.periodicWorkSecondPass()");
  cleanupRecoveredParticipants();
  // the XTS recovery module is registered and hence run before us. Therefore by the time we get here
  // we know deserialize has been called for any BridgeDurableParticipant for which a log exists.
  // thus if it's not in our participantsAwaitingRecovery list by now, it's presumed rollback.
  orphanedXAResourcesAreIdentifiable = true;
  // Inbound tx may have a JCA tx log but no corresponding XTS Participant (i.e. BridgeDurableParticipant) log.
  // these can now be identified and rolled back.
  List<Xid> indoubtSubordinates = getIndoubtSubordinates();
  for(Xid xid : indoubtSubordinates) {
    if(checkXid(xid) == XAResourceOrphanFilter.Vote.ROLLBACK) {
      txbridgeLogger.logger.trace("rolling back orphaned subordinate tx "+xid);
      try {
        xaTerminator.rollback(xid);
      } catch(XAException e) {
        txbridgeLogger.i18NLogger.error_ibrm_rollbackerr(XAHelper.xidToString(xid), e);
      }
    }
  }
}

代码示例来源:origin: org.jboss.narayana.jta/jta

jtaLogger.i18NLogger.warn_resources_arjunacore_rollbackerror(XAHelper.xidToString(xid),
    xaResource.toString(), XAHelper.printXAErrorCode(e), e);

代码示例来源:origin: jbosstm/narayana

if (jtaLogger.logger.isTraceEnabled()) {
  jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + xae.getMessage());
jtaLogger.i18NLogger.warn_resources_arjunacore_opcerror(XAHelper.xidToString(xid),
    xaResource.toString(), XAHelper.printXAErrorCode(xae), xae);
String xidString = xid == null ? "<  >" : XAHelper.xidToString(xid);
String resourceString = xaResource == null ? "null XA resource" : xaResource.toString();
if (jtaLogger.logger.isTraceEnabled()) {
  jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + ex.getMessage());
  if (jtaLogger.logger.isTraceEnabled()) {
    jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") called forget and got " + ex.getMessage());

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

/**
 * Commit the one phase resource.
 * @return TwoPhaseOutcome.FINISH_OK or TwoPhaseOutcome.FINISH_ERROR
 */
public int rollback()
{
  try
  {
    xaResource.rollback(xid) ;
    return TwoPhaseOutcome.FINISH_OK ;
  }
  catch (final XAException xae)
  {
    addDeferredThrowable(xae);
    jtaLogger.i18NLogger.warn_resources_arjunacore_XAOnePhaseResource_rollbackexception(XAHelper.xidToString(xid), xae);
  }
  catch (final Throwable ex)
  {
    if (jtaLogger.logger.isTraceEnabled()) {
      jtaLogger.logger.trace("XAOnePhaseResource.rollback(" + xid + ") " + ex.getMessage());
    }
  }
  return TwoPhaseOutcome.FINISH_ERROR ;
}

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

txbridgeLogger.logger.trace("BridgeDurableParticipant.prepare(Xid="+xid+")");
  if(result == XAResource.XA_OK)
    txbridgeLogger.logger.trace("prepare on Xid="+xid+" returning Prepared");
    return new Prepared();
    txbridgeLogger.logger.trace("prepare on Xid="+xid+" returning ReadOnly");
    return new ReadOnly();
  txbridgeLogger.i18NLogger.warn_ibdp_aborted(XAHelper.xidToString(xid), e);
  return new Aborted();

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

jtaLogger.i18NLogger.warn_resources_arjunacore_rollbackerror(XAHelper.xidToString(xid),
    xaResource.toString(), XAHelper.printXAErrorCode(e), e);

代码示例来源:origin: jbosstm/narayana

if (jtaLogger.logger.isTraceEnabled()) {
  jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + xae.getMessage());
jtaLogger.i18NLogger.warn_resources_arjunacore_opcerror(XAHelper.xidToString(xid),
    xaResource.toString(), XAHelper.printXAErrorCode(xae), xae);
String xidString = xid == null ? "<  >" : XAHelper.xidToString(xid);
String resourceString = xaResource == null ? "null XA resource" : xaResource.toString();
if (jtaLogger.logger.isTraceEnabled()) {
  jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + ex.getMessage());
  if (jtaLogger.logger.isTraceEnabled()) {
    jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") called forget and got " + ex.getMessage());

代码示例来源:origin: jbosstm/narayana

/**
 * Commit the one phase resource.
 * @return TwoPhaseOutcome.FINISH_OK or TwoPhaseOutcome.FINISH_ERROR
 */
public int rollback()
{
  try
  {
    xaResource.rollback(xid) ;
    return TwoPhaseOutcome.FINISH_OK ;
  }
  catch (final XAException xae)
  {
    addDeferredThrowable(xae);
    jtaLogger.i18NLogger.warn_resources_arjunacore_XAOnePhaseResource_rollbackexception(XAHelper.xidToString(xid), xae);
  }
  catch (final Throwable ex)
  {
    if (jtaLogger.logger.isTraceEnabled()) {
      jtaLogger.logger.trace("XAOnePhaseResource.rollback(" + xid + ") " + ex.getMessage());
    }
  }
  return TwoPhaseOutcome.FINISH_ERROR ;
}

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

txbridgeLogger.logger.trace("BridgeVolatileParticipant.prepare(Xid="+xid+")");
    txbridgeLogger.i18NLogger.warn_ibvp_preparefailed(XAHelper.xidToString(xid), null);
    inboundBridge.setRollbackOnly();
  txbridgeLogger.i18NLogger.warn_ibvp_preparefailed(XAHelper.xidToString(xid), e);
  try
    txbridgeLogger.i18NLogger.warn_ibvp_stopfailed(XAHelper.xidToString(xid), e);

代码示例来源:origin: jbosstm/narayana

jtaLogger.i18NLogger.warn_resources_arjunacore_rollbackerror(XAHelper.xidToString(xid),
    xaResource.toString(), XAHelper.printXAErrorCode(e), e);

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