Package com.arjuna.ats.arjuna.coordinator

Examples of com.arjuna.ats.arjuna.coordinator.ActionHierarchy


/*     */     }
/*     */
/*  95 */     this.currentStatus = 0;
/*  96 */     this.nextLock = null;
/*  97 */     this.lMode = lm;
/*  98 */     this.owners = new ActionHierarchy(0);
/*     */
/* 100 */     BasicAction curr = BasicAction.Current();
/*     */
/* 102 */     if (curr == null)
/*     */     {
/* 104 */       int currentPid = 0;
/* 105 */       ActionHierarchy ah = new ActionHierarchy(1);
/*     */
/* 107 */       if (applicUid == null)
/*     */       {
/* 109 */         applicUid = new Uid();
/*     */       }
/*     */
/* 112 */       if (applicPid != currentPid)
/*     */       {
/* 114 */         Uid temp = new Uid();
/*     */
/* 121 */         applicPid = currentPid;
/* 122 */         applicUid.copy(temp);
/*     */       }
/*     */
/* 125 */       ah.add(applicUid);
/* 126 */       this.owners.copy(ah);
/*     */     }
/*     */     else
/*     */     {
/* 130 */       this.owners.copy(curr.getHierarchy());
View Full Code Here


/*     */     }
/*     */
/* 149 */     this.currentStatus = 0;
/* 150 */     this.nextLock = null;
/* 151 */     this.lMode = 1;
/* 152 */     this.owners = new ActionHierarchy(0);
/*     */   }
View Full Code Here

/* 414 */     if (txojLogger.aitLogger.isDebugEnabled())
/*     */     {
/* 416 */       txojLogger.aitLogger.debug(16L, 4L, 2L, "Lock::restore_state(" + os + ", " + ot + ")");
/*     */     }
/*     */
/* 420 */     ActionHierarchy ah = new ActionHierarchy(0);
/*     */     try
/*     */     {
/* 424 */       this.currentStatus = os.unpackInt();
/* 425 */       this.lMode = os.unpackInt();
/* 426 */       ah.unpack(os);
/* 427 */       this.owners = ah;
/*     */
/* 429 */       return true;
/*     */     }
/*     */     catch (IOException e) {
View Full Code Here

  _context = doc.createElement(_contextName);
  _context.appendChild(doc.createComment("WARNING: example Arjuna coordinator hierarchy only!"));
 
  if (currentCoordinator != null)
  {
      ActionHierarchy hier = currentCoordinator.getHierarchy();
 
      for (int i = 0; i < hier.depth(); i++)
      {
    org.w3c.dom.Element elem = doc.createElement(_coordName);
   
    elem.appendChild(doc.createTextNode("http://arjuna.com?"+hier.getActionUid(i).stringForm()));
   
    _context.appendChild(elem);
      }
  }
    }
View Full Code Here

      _context = doc.createElement(_contextName);
      _context.appendChild(doc.createComment("WARNING: example Arjuna coordinator hierarchy only!"));
 
      if (currentCoordinator != null)
      {
    ActionHierarchy hier = currentCoordinator.getHierarchy();
 
    for (int i = 0; i < hier.depth(); i++)
    {
        org.w3c.dom.Element elem = doc.createElement(_coordName);
   
        elem.appendChild(doc.createTextNode("http://arjuna.com?"+hier.getActionUid(i).stringForm()));
   
        _context.appendChild(elem);
    }
      }
  }
View Full Code Here

  _context = doc.createElement(_contextName);
  _context.appendChild(doc.createComment("WARNING: example Arjuna coordinator hierarchy only!"));
 
  if (currentCoordinator != null)
  {
      ActionHierarchy hier = currentCoordinator.getHierarchy();
 
      for (int i = 0; i < hier.depth(); i++)
      {
    org.w3c.dom.Element elem = doc.createElement(_coordName);
   
    elem.appendChild(doc.createTextNode("http://arjuna.com?"+hier.getActionUid(i).stringForm()));
   
    _context.appendChild(elem);
      }
  }
    }
View Full Code Here

            {
                /*
                 * Do the manditory stuff first.
                 */

                ActionHierarchy txHier = currentCoordinator.getHierarchy();
                final int depth = txHier.depth() ;
                _identifierValues = new String[depth] ;
                _expiresValues = new int[depth] ;
               
                _identifierValues[0] = txHier.getDeepestActionUid().stringForm() ;
                _expiresValues[0] = hier.activity(hier.size()-1).getTimeout() ;
               
                /*
                 * Now let's do the optional stuff.
                 */

                for(int count = 1, index = 0 ; count < depth ; count++, index++)
                {
                    _identifierValues[count] = txHier.getActionUid(index).stringForm() ;
                    _expiresValues[count] = hier.activity(index).getTimeout() ;
                }
            }
        }
        catch (ClassCastException ex)
View Full Code Here

      {
        /*
         * Do the manditory stuff first.
         */

        ActionHierarchy txHier = currentCoordinator.getHierarchy();
                final int depth = txHier.depth() ;
                _identifierValues = new String[depth] ;
                _expiresValues = new int[depth] ;
               
                _identifierValues[0] = txHier.getDeepestActionUid().stringForm() ;
                _expiresValues[0] = hier.activity(hier.size()-1).getTimeout() ;
               
        /*
         * Now let's do the optional stuff.
         */
                for(int count = 1, index = 0 ; count < depth ; count++, index++)
                {
                    _identifierValues[count] = txHier.getActionUid(index).stringForm() ;
                    _expiresValues[count] = hier.activity(index).getTimeout() ;
                }
      }
    }
    catch (ClassCastException ex)
View Full Code Here

          {
            /*
             * Do the manditory stuff first.
             */
       
            ActionHierarchy txHier = currentCoordinator.getHierarchy();
                final int depth = txHier.depth() ;
                _identifierValues = new String[depth] ;
                _expiresValues = new int[depth] ;
               
                _identifierValues[0] = txHier.getDeepestActionUid().stringForm() ;
                _expiresValues[0] = hier.activity(hier.size()-1).getTimeout() ;
             
            /*
             * Now let's do the optional stuff.
             */
                for(int count = 1, index = 0 ; count < depth ; count++, index++)
                {
                    _identifierValues[count] = txHier.getActionUid(index).stringForm() ;
                    _expiresValues[count] = hier.activity(index).getTimeout() ;
                }
            }
      }
      catch (ClassCastException ex)
View Full Code Here

TOP

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

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.