/** * Used for failure recovery. * * @param actId * the transaction state to recover. */ public TransactionImple(Uid actId) { super(new SubordinateAtomicAction(actId)); // don't put it into list here: it may already be there! }
/** * Used for failure recovery. * * @param actId * the transaction state to recover. */ public TransactionImple(Uid actId) { super(new SubordinateAtomicAction(actId)); // don't put it into list here: it may already be there! }
/** * Used for failure recovery. * * @param actId * the transaction state to recover. */ public TransactionImple(Uid actId) { super(new SubordinateAtomicAction(actId)); // don't put it into list here: it may already be there! }
/** * Used for failure recovery. * * @param actId * the transaction state to recover. */ public TransactionImple(Uid actId) { super(new SubordinateAtomicAction(actId)); // don't put it into list here: it may already be there! }
/** * Used for failure recovery. * * @param actId * the transaction state to recover. */ public TransactionImple(Uid actId) { super(new SubordinateAtomicAction(actId)); // don't put it into list here: it may already be there! }
/** * Used for failure recovery. * * @param actId * the transaction state to recover. */ public TransactionImple(Uid actId) { super(new SubordinateAtomicAction(actId)); // don't put it into list here: it may already be there! }
/** * Used for failure recovery. * * @param actId * the transaction state to recover. */ public TransactionImple(Uid actId) { super(new SubordinateAtomicAction(actId)); // don't put it into list here: it may already be there! }
/** * Used for failure recovery. * * @param actId * the transaction state to recover. */ public TransactionImple(Uid actId) { super(new SubordinateAtomicAction(actId)); // don't put it into list here: it may already be there! }
public TransactionImple(int timeout, Xid importedXid) { super(new SubordinateAtomicAction(timeout, importedXid)); TransactionImple.putTransaction(this); }
public TransactionImple(int timeout, Xid importedXid) { super(new SubordinateAtomicAction(timeout, importedXid)); TransactionImple.putTransaction(this); }
public TransactionImple(int timeout, Xid importedXid) { super(new SubordinateAtomicAction(timeout, importedXid)); TransactionImple.putTransaction(this); }
public TransactionImple(int timeout, Xid importedXid) { super(new SubordinateAtomicAction(timeout, importedXid)); TransactionImple.putTransaction(this); }
public TransactionImple(int timeout, Xid importedXid) { super(new SubordinateAtomicAction(timeout, importedXid)); TransactionImple.putTransaction(this); }
public TransactionImple(int timeout, Xid importedXid) { super(new SubordinateAtomicAction(timeout, importedXid)); TransactionImple.putTransaction(this); }
public TransactionImple(int timeout, Xid importedXid) { super(new SubordinateAtomicAction(timeout, importedXid)); TransactionImple.putTransaction(this); }
public TransactionImple(int timeout, Xid importedXid) { super(new SubordinateAtomicAction(timeout, importedXid)); TransactionImple.putTransaction(this); }
final SubordinateAtomicAction saa = new SubordinateAtomicAction(uid, true); if (saa.getXid().getFormatId() == InboundBridge.XARESOURCE_FORMAT_ID) { uids.add(uid);
private boolean isInStore(Xid xid) { final RecoveryStore recoveryStore = StoreManager.getRecoveryStore(); final InputObjectState states = new InputObjectState(); try { if (recoveryStore.allObjUids(SubordinateAtomicAction.getType(), states) && states.notempty()) { boolean finished = false; do { final Uid uid = UidHelper.unpackFrom(states); if (uid.notEquals(Uid.nullUid())) { final SubordinateAtomicAction saa = new SubordinateAtomicAction(uid, true); if (saa.getXid().equals(xid)) { return true; } } else { finished = true; } } while (!finished); } } catch (ObjectStoreException e) { LOG.warn(e.getMessage(), e); } catch (IOException e) { LOG.warn(e.getMessage(), e); } return false; }
@Test public void testAtomicAction () throws Exception { SubordinateAtomicAction saa1 = new SubordinateAtomicAction(); SubordinateAtomicAction saa2 = new SubordinateAtomicAction(new Uid()); OutputObjectState os = new OutputObjectState(); assertTrue(saa1.save_state(os, ObjectType.ANDPERSISTENT)); InputObjectState is = new InputObjectState(os); assertTrue(saa2.restore_state(is, ObjectType.ANDPERSISTENT)); }
SubordinateAtomicAction tx = new SubordinateAtomicAction(uid, true); XidImple transactionXid = (XidImple) tx.getXid(); if (transactionXid != null && transactionXid.isSameTransaction(recoveredResourceXid)) {