[jboss-svn-commits] JBL Code SVN: r26587 - labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/context.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon May 18 09:22:30 EDT 2009
Author: jhalliday
Date: 2009-05-18 09:22:30 -0400 (Mon, 18 May 2009)
New Revision: 26587
Removed:
labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/context/TxHierarchy.java
labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/context/TxHierarchyIterator.java
Log:
Remove unused TxHierarchy classes. JBTM-556
Deleted: labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/context/TxHierarchy.java
===================================================================
--- labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/context/TxHierarchy.java 2009-05-18 11:52:25 UTC (rev 26586)
+++ labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/context/TxHierarchy.java 2009-05-18 13:22:30 UTC (rev 26587)
@@ -1,158 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2001, 2002,
- *
- * Hewlett-Packard Arjuna Labs,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: TxHierarchy.java 2342 2006-03-30 13:06:17Z $
- */
-
-package com.arjuna.ats.internal.jts.context;
-
-import com.arjuna.orbportability.ORB;
-
-import org.omg.CosTransactions.*;
-
-import com.arjuna.ats.arjuna.coordinator.*;
-import com.arjuna.ats.arjuna.common.*;
-
-import com.arjuna.ats.internal.arjuna.template.*;
-
-import java.io.PrintStream;
-
-/*
- * Need methods for adding to and removing from the
- * hierarchy as it changes over time. We only want to
- * maintain a single instance of this class for each
- * hierarchy, no matter how it evolves. This means
- * covering branches etc.
- */
-
-/**
- * Maintains the OTS transaction hierarchy.
- *
- * @author Mark Little (mark at arjuna.com)
- * @version $Id: TxHierarchy.java 2342 2006-03-30 13:06:17Z $
- * @since JTS 1.0.
- */
-
-public class TxHierarchy
-{
-
- public TxHierarchy ()
- {
- _hier = new SimpleList();
- }
-
- public void finalize ()
- {
- if (_hier != null)
- {
- ListElementWrapper ptr = (ListElementWrapper) _hier.orderedPop();
-
- while (ptr != null)
- {
- ptr = null;
- ptr = (ListElementWrapper) _hier.orderedPop();
- }
-
- _hier = null;
- }
- }
-
- public final synchronized boolean present (Control control)
- {
- SimpleListIterator iter = new SimpleListIterator(_hier);
- ListElementWrapper wrapper = (ListElementWrapper) iter.iterate();
- Control act = ((wrapper != null) ? (Control) wrapper.value() : null);
- boolean found = false;
- Coordinator theCoordinator = null;
-
- try
- {
- theCoordinator = control.get_coordinator();
- }
- catch (Exception e)
- {
- theCoordinator = null;
- }
-
- if (theCoordinator != null)
- {
- Coordinator coord = null;
-
- while ((act != null) && (!found))
- {
- try
- {
- coord = act.get_coordinator();
- found = theCoordinator.is_same_transaction(coord);
- }
- catch (Exception e)
- {
- }
-
- coord = null;
-
- if (!found)
- {
- wrapper = (ListElementWrapper) iter.iterate();
-
- act = ((wrapper != null) ? (Control) wrapper.value() : null);
- }
- }
-
- coord = null;
- }
-
- theCoordinator = null;
-
- return found;
- }
-
- public final synchronized void push (Control control)
- {
- _hier.push(new ListElementWrapper(control));
- }
-
- public final synchronized Control pop ()
- {
- ListElementWrapper wrapper = (ListElementWrapper) _hier.orderedPop();
- Control cont = ((wrapper != null) ? (Control) wrapper.value() : null);
- Control toReturn = null;
-
- if (wrapper != null)
- {
- wrapper = null;
-
- return cont;
- }
- else
- return null;
- }
-
- SimpleList _hier;
-
-}
Deleted: labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/context/TxHierarchyIterator.java
===================================================================
--- labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/context/TxHierarchyIterator.java 2009-05-18 11:52:25 UTC (rev 26586)
+++ labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/context/TxHierarchyIterator.java 2009-05-18 13:22:30 UTC (rev 26587)
@@ -1,69 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2001, 2002,
- *
- * Hewlett-Packard Arjuna Labs,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: TxHierarchyIterator.java 2342 2006-03-30 13:06:17Z $
- */
-
-package com.arjuna.ats.internal.jts.context;
-
-import com.arjuna.ats.internal.arjuna.template.*;
-
-import org.omg.CosTransactions.*;
-
-/**
- * An iterator for the OTS_ActionHierarchy.
- *
- * @author Mark Little (mark at arjuna.com)
- * @version $Id: TxHierarchyIterator.java 2342 2006-03-30 13:06:17Z $
- * @since JTS 1.0.
- */
-
-public class TxHierarchyIterator
-{
-
- /**
- * Create a new instance to iterate across the specified hierarchy.
- */
-
- public TxHierarchyIterator (TxHierarchy toIter)
- {
- _theIter = new SimpleListIterator(toIter._hier);
- }
-
- /**
- * Return the next transaction in the hierarchy.
- */
-
- public final synchronized Control iterate ()
- {
- return (Control) _theIter.iterate();
- }
-
- private SimpleListIterator _theIter;
-
-}
More information about the jboss-svn-commits
mailing list