Package com.arjuna.ats.arjuna.coordinator

Examples of com.arjuna.ats.arjuna.coordinator.BasicAction


/*      */
/*      */   public static final TransactionImple getTransaction()
/*      */   {
/* 1249 */     TransactionImple tx = null;
/*      */
/* 1251 */     BasicAction current = BasicAction.Current();
/* 1252 */     if (current != null)
/*      */     {
/* 1254 */       Uid txid = current.get_uid();
/*      */
/* 1256 */       tx = (TransactionImple)_transactions.get(txid);
/* 1257 */       if (tx == null) {
/* 1258 */         tx = new TransactionImple(current);
/*      */       }
View Full Code Here


      throw new BAD_PARAM(
          "otid_t "
              + jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.otiderror"));
    else
    {
      BasicAction act = ActionManager.manager().get(u);

      if (act == null)
        throw new NoTransaction();
      else
      {
        if (act.status() == ActionStatus.RUNNING)
        {
          Object[] children = act.childTransactions();
          int size = ((children == null) ? 0 : children.length);

          if (size > 0)
          {
            ctx = new org.omg.CosTransactions.otid_t[size];
View Full Code Here

      throw new BAD_PARAM(
          "otid_t "
              + jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.otiderror"));
    else
    {
      BasicAction act = ActionManager.manager().get(u);

      if (act == null)
        throw new NoTransaction();
      else
      {
        if (act.status() == ActionStatus.RUNNING)
        {
          Object[] children = act.childTransactions();
          int size = ((children == null) ? 0 : children.length);

          if (size > 0)
          {
            ctx = new org.omg.CosTransactions.otid_t[size];
View Full Code Here

    }
  }

  public ControlImple getParentImple ()
  {
    BasicAction parent = ((_transactionHandle != null) ? _transactionHandle.parent()
        : null);

    if (parent != null)
    {
      try
      {
        synchronized (ControlImple.allControls)
        {
          return (ControlImple) ControlImple.allControls.get(parent.get_uid());
        }
      }
      catch (Exception ex)
      {
        return null;
View Full Code Here

      /*
       * First get the hierarchy from the bottom up.
       */

      java.util.Stack s = new java.util.Stack();
      BasicAction nextLevel = act.parent();

      s.push(act);

      while (nextLevel != null)
      {
        s.push(nextLevel);

        nextLevel = nextLevel.parent();
      }

      /*
       * Now push the hierarchy onto the thread stack.
       */
 
View Full Code Here

  {
    Stack txs = (Stack) _threadList.get();

    if (txs != null)
    {
      BasicAction a = (BasicAction) txs.pop();

      if ((a != null) && (unregister))
      {
        a.removeChildThread(threadId);
      }

      if (txs.size() == 0)
      {
        _threadList.set(null);
View Full Code Here

    {
      if (unregister)
      {
        while (!txs.empty())
        {
          BasicAction act = (BasicAction) txs.pop();

          if (act != null)
                    {
            act.removeChildThread(ThreadUtil.getThreadId(t));
                    }
        }
      }
    }
  }
View Full Code Here

    addControl();
  }

  public ControlImple getParentImple ()
  {
    BasicAction parent = _transactionHandle.parent();

    if (parent != null)
    {
      synchronized (ServerControl.allControls)
      {
        return (ControlImple) ServerControl.allServerControls.get(parent.get_uid());
      }
    }
    else
      return null;
  }
View Full Code Here

      throw new BAD_PARAM(
          "otid_t "
              + jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.otiderror"));
    else
    {
      BasicAction act = ActionManager.manager().get(u);

      if (act == null)
        throw new NoTransaction();
      else
      {
        if (act.status() == ActionStatus.RUNNING)
        {
          Object[] children = act.childTransactions();
          int size = ((children == null) ? 0 : children.length);

          if (size > 0)
          {
            ctx = new org.omg.CosTransactions.otid_t[size];
View Full Code Here

  int action_status = ActionStatus.INVALID;

  try
  {
      // check in local hash table
      BasicAction basic_action = null;

      synchronized ( ActionManager.manager() )
      {
    basic_action = (BasicAction)ActionManager.manager().get( tranUid );
      }

      if ( basic_action != null)
      {
    action_status = basic_action.status();
      }
      else
      {
    /*
     * If there is a persistent representation for this
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.coordinator.BasicAction

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.