gpt4 book ai didi

com.arjuna.ats.jta.xa.XidImple.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 22:37:05 28 4
gpt4 key购买 nike

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

XidImple.<init>介绍

暂无

代码示例

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

public SubordinateAtomicAction (int timeout, Xid xid)
{
  super(timeout); // implicit start (done in base class)
  
  _theXid = new XidImple(xid);
  _activated = true;
}

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

public ServerTransaction (Uid actUid, Xid xid)
{
  super(actUid, null);
  
  // convert to internal format (makes saving/restoring easier)
  
  _theXid = new XidImple(xid);
}

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

public boolean contains (Xid xid)
{
  XidImple xidImple = new XidImple(xid);
  return _whenFirstSeen.containsKey(xidImple);
}

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

public boolean contains (Xid xid)
{
  XidImple xidImple = new XidImple(xid);
  return _whenFirstSeen.containsKey(xidImple);
}

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

private static final XID getXIDfromXid(Xid xid) {
   XidImple xidImple;
   if(xid instanceof XidImple) {
     xidImple = (XidImple)xid;
   } else {
     xidImple = new XidImple(xid);
   }
   return xidImple.getXID();
}

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

public final Xid getTxId ()
{
  Xid res = baseXid();
  
  if (res == null)
    res = new XidImple(_theTransaction);
  
  return res;
}

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

public final Xid getTxId ()
{
  Xid res = baseXid();
  
  if (res == null)
    res = new XidImple(_theTransaction);
  
  return res;
}

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

public static String getNodeName(XID xid) {
  if (xid == null || !FormatConstants.isNarayanaFormatId(xid.formatID)) {
    return null;
  }
  Xid xidImple = new XidImple(xid);
  byte[] globalTransactionId = xidImple.getGlobalTransactionId();
  // the node name follows the Uid with no separator, so the only
  // way to tell where it starts is to figure out how long the Uid is.
  int offset = Uid.UID_SIZE;
  return new String(Arrays.copyOfRange(globalTransactionId, offset, globalTransactionId.length), StandardCharsets.UTF_8);
}

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

public static final String getXANodeName (Xid xid)
{
  XidImple xidImple;
  if(xid instanceof XidImple) {
    xidImple = (XidImple)xid;
  } else {
    xidImple = new XidImple(xid);
  }
  return XATxConverter.getNodeName(xidImple.getXID());
}

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

private XidImple convertXid(Xid xid)
{
  if (xid != null && xid.getFormatId() == XATxConverter.FORMAT_ID) {
    XidImple toImport = new XidImple(xid);
    XATxConverter.setSubordinateNodeName(toImport.getXID(), TxControl.getXANodeName());
    return new SubordinateXidImple(toImport);
  } else {
    return new XidImple(xid);
  }
}

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

protected HeaderState unpackHeader(InputObjectState os) throws IOException {
  wasInvoked = true;
  if (os.unpackBoolean())
    new XidImple().unpackFrom(os);
  return super.unpackHeader(os);
}

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

public static Xid getXid (Uid uid, boolean branch, int formatId) throws IllegalStateException
{
  XID xid;
  if (branch)
    xid = getXid(uid, new Uid(), formatId, null);
  else
    xid = getXid(uid, Uid.nullUid(), formatId, null);
  return new XidImple(xid);
}

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

public Transaction getTransaction(Xid xid) throws XAException {
  // first see if the xid is a root coordinator
  Transaction transaction = TransactionImple.getTransaction(new XidImple(xid).getTransactionUid());
  // second see if the xid is a subordinate txn
  if(transaction == null) {
    transaction = SubordinationManager.getTransactionImporter().getImportedTransaction(xid);
  }
  return transaction;
}

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

private void init() {
  jndiName = getUid().stringForm();
  className = "unavailable";
  eisProductName = "unavailable";
  eisProductVersion = "unavailable";
  timeout = 0;
  heuristic = -1;
  xidImple = new XidImple(new XID());
}

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

private void init() {
  jndiName = getUid().stringForm();
  className = "unavailable";
  eisProductName = "unavailable";
  eisProductVersion = "unavailable";
  timeout = 0;
  heuristic = -1;
  xidImple = new XidImple(new XID());
}

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

public static Xid getXid (Uid uid, boolean branch, int formatId) throws IllegalStateException
{
  XID xid;
  if (branch)
    xid = getXid(uid, new Uid(), formatId, null);
  else
    xid = getXid(uid, Uid.nullUid(), formatId, null);
  return new XidImple(xid);
}

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

public static Xid getXid (Uid uid, boolean branch, int formatId) throws IllegalStateException
{
  XID xid;
  if (branch)
    xid = getXid(uid, new Uid(), formatId, null);
  else
    xid = getXid(uid, Uid.nullUid(), formatId, null);
  return new XidImple(xid);
}

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

public Transaction getTransaction(Xid xid) throws XAException {
  // first see if the xid is a root coordinator
  Transaction transaction = TransactionImple.getTransaction(new XidImple(xid).getTransactionUid());
  // second see if the xid is a subordinate txn
  if(transaction == null) {
    transaction = SubordinationManager.getTransactionImporter().getImportedTransaction(xid);
  }
  return transaction;
}

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

private void init() {
  jndiName = getUid().stringForm();
  className = "unavailable";
  eisProductName = "unavailable";
  eisProductVersion = "unavailable";
  timeout = 0;
  heuristic = -1;
  xidImple = new XidImple(new XID());
}

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

public XAResourceRecordBean(UidWrapper w) {
  super(w.getUid());
  init();
  xares = new JTAXAResourceRecordWrapper(w.getUid());
  xidImple = new XidImple(new XID());
  heuristic = -1;
}

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