Package com.arjuna.ats.arjuna.common

Examples of com.arjuna.ats.arjuna.common.Uid


    if (tpc instanceof String)
    {
        try
        {
      Uid importedTx = new Uid((String)tpc);

      Transaction newTx = com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.getTransaction(importedTx);

      if (log.isDebugEnabled())
      {
View Full Code Here


        Stack values = new Stack();
        boolean finished = false;

        do
        {
          Uid uid = new Uid(Uid.nullUid());

          try
          {
            uid.unpack(states);
          }
          catch (IOException ex)
          {
            ex.printStackTrace();

            finished = true;
          }

          if (uid.notEquals(Uid.nullUid()))
          {
            Transaction tx = SubordinationManager.getTransactionImporter()
                .recoverTransaction(uid);

            if (tx != null)
View Full Code Here

                                String type,
                                ObjectStoreBrowserTreeManipulationInterface manipulator,
                                UidNode uidNode,
                                StatePanel infoPanel) throws ObjectStoreException
    {
        Uid theUid = uidNode.getUid();
        ArjunaTransactionWrapper ba = new ArjunaTransactionWrapper(theUid,getObjectName(os), type);
        ListNode node;
        SubTreeViewEntry entry;

        manipulator.clearEntries();
View Full Code Here

  if (managerAddress == null)
      return TwoPhaseOutcome.FINISH_ERROR;

  if (actionHandle != null)
  {
      Uid toRelease = actionHandle.get_uid();
     
      actionHandle = actionHandle.parent();
     
      if (!managerAddress.releaseAll(toRelease))
      {
View Full Code Here

  if (managerAddress == null)
      return TwoPhaseOutcome.FINISH_ERROR;

  if (actionHandle != null)
  {
      Uid toRelease = actionHandle.get_uid();
     
      actionHandle = actionHandle.parent();
     
      return (managerAddress.propagate(toRelease, actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR);
  }
View Full Code Here

{
    public static void main (String[] args)
    {
  Vector xaRecoveryNodes = new Vector();
  boolean passed = false;
  Uid bogusNodeName = new Uid();
 
  xaRecoveryNodes.add(bogusNodeName.stringForm());

  System.err.println("Bogus XA node name: "+bogusNodeName);
 
  XidImple xid = new XidImple(new Uid());
  String nodeName = XAUtils.getXANodeName(xid);

  // should fail.

  System.err.println("XA node name: "+nodeName);
View Full Code Here

            }
        }
    }

    public static Xid createJJHXid() {
        return new XidImple(new Uid());
    }
View Full Code Here

     
      b[0] = 'c';
 
      com.arjuna.ats.arjuna.coordinator.TxControl.setXANodeName(b);
 
      xids[1] = new XidImple(new Uid());

      com.arjuna.ats.arjuna.coordinator.TxControl.setXANodeName(c);
  }
    }
View Full Code Here

    {
        Integer returnCode = null;

        try
        {
            new Uid();
            _rm = new RecoveryManagerImple(true);
        }
        catch (Throwable e)
        {
            e.printStackTrace(System.err);
View Full Code Here

                                StatePanel infoPanel) throws ObjectStoreException
    {
        if (!InFlightTransactionPseudoStore.STORE_NAME.equals(os.getStoreName()))
            return; // called with the wrong store name
       
        Uid theUid = uidNode.getUid();
        Transaction delegate = null;
        Object ios = os.read_committed(theUid, type);

        if (ios instanceof TxInputObjectState)
            delegate = (Transaction)((TxInputObjectState)ios).getRealObject();
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.common.Uid

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.