Package com.arjuna.ats.arjuna.coordinator

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


    public void setRecoveryCoordinator()
    {
        if (preparedList != null)
        {
            RecordListIterator iter = new RecordListIterator(preparedList);
            AbstractRecord absRec = iter.iterate();

            while (absRec != null)
            {
                if (absRec instanceof ParticipantRecord)
                {
View Full Code Here


        }
    }
   
    public boolean remove(Uid uid)
    {
        AbstractRecord rec = getList().peekFront();

        while (rec != null)
        {
            if (rec.order().equals(uid))
                return getList().remove(rec);

            rec = getList().peekNext(rec);
        }
View Full Code Here

        return false;
    }

    public boolean contains(Uid uid)
    {
        AbstractRecord rec = getList().peekFront();

        while (rec != null)
        {
            if (rec.order().equals(uid))
                return true;

            rec = getList().peekNext(rec);
        }
View Full Code Here

        return false;
    }

    public boolean contains(String uid)
    {
        AbstractRecord rec = getList().peekFront();

        while (rec != null)
        {
            if (rec.order().stringForm().equals(uid))
                return true;

            rec = getList().peekNext(rec);
        }
View Full Code Here

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

        AbstractRecord current = getList().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(wrapper.type(), (String)entryNode.getUserObject(), entryNode));
            icon.addSelectionListener(this);
            current = getList().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());

        updatePanelData(panel, record);

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

                if ( JOptionPane.showConfirmDialog(this, "Are you sure you wish to do this?") == JOptionPane.YES_OPTION )
                {
                    try
                    {
                        /** Call forget on the resource handle **/
                        AbstractRecord ar = _resourceActionHandle.getAbstractRecord();

                        if (ar instanceof ResourceRecord)
                        {
                            ((ResourceRecord)ar).resourceHandle().forget();
                        }
                        else if (ar instanceof XAResourceRecord)
                        {
                            XAResourceRecord rc = (XAResourceRecord) ar;

                            ((XAResource)rc.value()).forget(rc.getXid());
                        }
                        else if (ar instanceof RecoveryAbstractRecord)
                        {
                            ar = ((RecoveryAbstractRecord) ar).record();
                            ar.forgetHeuristic();
                        }
                        else if (ar instanceof ExtendedResourceRecord)
                        {
                            // call forget on the OTS Resource
                            try
View Full Code Here

        }
    }

    public boolean remove(Uid uid)
    {
        AbstractRecord rec = getList().peekFront();

        while (rec != null)
        {
            if (rec.order().equals(uid))
                return getList().remove(rec);

            rec = getList().peekNext(rec);
        }
View Full Code Here

        return false;
    }

    public boolean contains(Uid uid)
    {
        AbstractRecord rec = getList().peekFront();

        while (rec != null)
        {
            if (rec.order().equals(uid))
                return true;

            rec = getList().peekNext(rec);
        }
View Full Code Here

        return false;
    }

    public boolean contains(String uid)
    {
        AbstractRecord rec = getList().peekFront();

        while (rec != null)
        {
            if (rec.order().stringForm().equals(uid))
                return true;

            rec = getList().peekNext(rec);
        }
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.