Package com.arjuna.ats.arjuna.coordinator

Examples of com.arjuna.ats.arjuna.coordinator.AbstractRecord


     */
    public void iconSelected(IconPanelEntry icon, boolean selected)
    {
        /** Get node and the associated AbstractRecord **/
        ListEntryNode node = (ListEntryNode)(((ObjectStoreViewEntry)icon).getNode());
        AbstractRecord record = (AbstractRecord)node.getAssociatedObject();
        StatePanel panel = BrowserFrame.getStatePanel();
        panel.clear();
        panel.setType(record.type());

        invokeStateViewer(record, (AtomicActionWrapper)this.getAssObject(), icon);

        panel.repaint();
    }
View Full Code Here


    }

    public static String[] toStringArray(RecordList rl)
    {
        String[] res = new String[rl.size()];
        AbstractRecord rec = rl.peekFront();
        int i = 0;

        while (rec != null)
        {
            res[i++] = rec.getTypeOfObject();
            rec = rl.peekNext(rec);
        }

        return res;
    }
View Full Code Here

/*      */           {
/*  734 */             BasicAction action = (BasicAction)e.nextElement();
/*      */
/*  736 */             while (action != null)
/*      */             {
/*  752 */               AbstractRecord A = new CadaverLockRecord(this.lockStore, this, action);
/*      */
/*  754 */               if (action.add(A) != 2) {
/*  755 */                 A = null;
/*      */               }
/*      */             }
View Full Code Here

/* 1087 */           if (action == null)
/*      */           {
/*      */             continue;
/*      */           }
/*      */
/* 1096 */           AbstractRecord record = null;
/* 1097 */           int rStatus = 2;
/*      */
/* 1099 */           if ((this.currentStatus == 3) || (this.currentStatus == 2))
/*      */           {
/* 1102 */             OutputObjectState state = null;
View Full Code Here

      }
      else
        throw new Inactive();
    }

    AbstractRecord corbaRec = null;
    BasicAction registerIn = this;

    if (jtsLogger.logger.isDebugEnabled())
    {
      jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ArjunaTransactionImple "
View Full Code Here

      throw new NotSubtransaction();
    }
    else
    {
      Coordinator coord = null;
      AbstractRecord corbaRec = null;

      try
      {
        coord = parentHandle.get_coordinator();
        corbaRec = createOTSRecord(false, r, coord);
View Full Code Here

     * handle it, rather than a single abstract record which switches
     * protocols internally.
     */

    ArjunaSubtranAwareResource absRec = null;
    AbstractRecord corbaRec = null;

    if (resource != null)
    {
      try
      {
View Full Code Here

    public void listExpanded(ListNode node)
    {
        super.listExpanded(node);

        ArjunaTransactionWrapper aaw = (ArjunaTransactionWrapper)this.getAssObject();
        AbstractRecord current = aaw.getPreparedList().peekFront();
        int count = 1;
        while ( current != null )
        {
            ListEntryNode entryNode;
            ObjectStoreViewEntry icon;
            node.createEntry(entryNode = new ListEntryNode("["+count+"] "+current.type(), current, current.type()));
            entryNode.setIconPanelEntry(icon = new ObjectStoreViewEntry(aaw.type(), (String)entryNode.getUserObject(), entryNode));
            icon.addSelectionListener(this);
            current = aaw.getPreparedList().peekNext(current);
            count++;
        }
View Full Code Here

     */
    public void iconSelected(IconPanelEntry icon, boolean selected)
    {
        /** Get node and the associated AbstractRecord **/
        ListEntryNode node = (ListEntryNode)(((ObjectStoreViewEntry)icon).getNode());
        AbstractRecord record = (AbstractRecord)node.getAssociatedObject();
        StatePanel panel = BrowserFrame.getStatePanel();
        panel.clear();
        panel.setType(record.type());

        invokeStateViewer(record, (ArjunaTransactionWrapper)this.getAssObject(), icon);
        panel.repaint();
    }
View Full Code Here

    public void listExpanded(ListNode node)
    {
        super.listExpanded(node);

        ArjunaTransactionWrapper aaw = (ArjunaTransactionWrapper)this.getAssObject();
        AbstractRecord current = aaw.getReadOnlyList().peekFront();
        int count = 1;
        while ( current != null )
        {
            ListEntryNode entryNode;
            ObjectStoreViewEntry icon;
            node.createEntry(entryNode = new ListEntryNode("["+count+"] "+current.type(), current, current.type()));
            entryNode.setIconPanelEntry(icon = new ObjectStoreViewEntry(aaw.type(), (String)entryNode.getUserObject(), entryNode));
            icon.addSelectionListener(this);
            current = aaw.getReadOnlyList().peekNext(current);
            count++;
        }
View Full Code Here

TOP

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

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.