Package com.arjuna.ats.arjuna.coordinator

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


      /*
       * 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

public class TransactionInterruptInterceptor {
    private static Log LOG = LogFactory.getLog(TransactionInterruptInterceptor.class);

    @AroundInvoke
    public Object addCheckedActionToTransactionManager(InvocationContext invocation_context) throws Exception {
        BasicAction currentTx = null;
        CheckedAction previousCheckedAction = null;

        try {
            currentTx = BasicAction.Current();
View Full Code Here

                                }
                            }
                        }

                        /** Remove the abstract record from the heuristic list **/
                        BasicAction action = _resourceActionHandle.getAction();

                        if (action instanceof BasicActionInfo)
                            ((BasicActionInfo) action).getHeuristicList().remove(ar);

                        /** Persist state **/
                        if ( !action.deactivate() )
                        {
                            JOptionPane.showMessageDialog(this, "Failed to persist the action");
                        }
                    }
                    catch (Throwable t)
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

   {
      int action_status = ActionStatus.INVALID;

      try
      {
         BasicAction basic_action = null;

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

         if ( basic_action != null)
         {
            action_status = basic_action.status();
         }
         else
         {
            /**
             * Run through the object store and try and find the matching id.
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

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.