[jboss-svn-commits] JBL Code SVN: r26592 - in labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas: util and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon May 18 10:46:25 EDT 2009
Author: jhalliday
Date: 2009-05-18 10:46:24 -0400 (Mon, 18 May 2009)
New Revision: 26592
Modified:
labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/activity/ActivityImple.java
labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/activity/ActivityReaper.java
labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/util/HLSWrapper.java
Log:
Remove unused import statements. JBTM-109
Modified: labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/activity/ActivityImple.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/activity/ActivityImple.java 2009-05-18 14:26:17 UTC (rev 26591)
+++ labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/activity/ActivityImple.java 2009-05-18 14:46:24 UTC (rev 26592)
@@ -1,8 +1,8 @@
/*
* 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
+ * 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
@@ -14,7 +14,7 @@
* 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.
*/
@@ -33,9 +33,6 @@
import com.arjuna.mw.wsas.logging.wsasLogger;
-import com.arjuna.ats.internal.arjuna.template.OrderedList;
-import com.arjuna.ats.internal.arjuna.template.OrderedListIterator;
-
import com.arjuna.mw.wsas.activity.Outcome;
import com.arjuna.mw.wsas.common.GlobalId;
@@ -74,7 +71,7 @@
/**
* The Activity.
- *
+ *
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: ActivityImple.java,v 1.6 2005/05/19 12:13:18 nmcl Exp $
* @since 1.0.
@@ -101,7 +98,7 @@
/**
* Start a new activity.
- *
+ *
* @param int
* timeout The timeout associated with the activity. If the
* activity has not been terminated by the time this period
@@ -131,7 +128,7 @@
/**
* Start a new activity. If there is already an activity associated with the
* thread then it will be nested.
- *
+ *
* @param int
* timeout The timeout associated with the activity. If the
* activity has not been terminated by the time this period
@@ -145,7 +142,7 @@
* current working environment.
* @exception SystemException
* Thrown in any other situation.
- *
+ *
* @message com.arjuna.mwlabs.wsas.activity.ActivityImple_1
* [com.arjuna.mwlabs.wsas.activity.ActivityImple_1] - State
* incompatible to start activity:
@@ -194,7 +191,7 @@
/**
* Complete the activity with the current completion status.
- *
+ *
* @exception InvalidActivityException
* Thrown if the current activity is not known about by the
* activity system.
@@ -209,10 +206,10 @@
* terminate the transaction.
* @exception SystemException
* Thrown if some other error occurred.
- *
+ *
* @return the result of completing the activity. Null is valid and must be
* interpreted within the context of any HLS that may exist.
- *
+ *
* @see com.arjuna.mw.wsas.Outcome
*/
@@ -224,7 +221,7 @@
/**
* Complete the activity with the completion status provided.
- *
+ *
* @exception InvalidActivityException
* Thrown if the current activity is not known about by the
* activity system.
@@ -240,15 +237,15 @@
* terminate the transaction.
* @exception SystemException
* Thrown if some other error occurred.
- *
+ *
* @param CompletionStatus
* cs The CompletionStatus to use.
- *
+ *
* @return the result of completing the activity. Null is valid and must be
* interpreted within the context of any HLS that may exist.
- *
+ *
* @see com.arjuna.mw.wsas.Outcome
- *
+ *
* @message com.arjuna.mwlabs.wsas.activity.ActivityImple_2
* [com.arjuna.mwlabs.wsas.activity.ActivityImple_2] - Activity
* cannot complete as it has active children:
@@ -264,7 +261,7 @@
{
/*
* TODO
- *
+ *
* We need an exception that can be thrown to say that the activity is
* completing.
*/
@@ -369,13 +366,13 @@
/**
* Set the termination status for the current activity, if any.
- *
+ *
* @param CompletionStatus
* endStatus The state in which the activity should attempt to
* terminate. This may be one of the default values provided by
* WSAS or may be extended in an implementation specific manner
* by an HLS.
- *
+ *
* @exception NoActivityException
* Thrown if there is no activity associated with the
* invoking thread.
@@ -384,7 +381,7 @@
* current state of the activity.
* @exception SystemException
* Thrown if any other error occurs.
- *
+ *
* @message com.arjuna.mwlabs.wsas.activity.ActivityImple_4
* [com.arjuna.mwlabs.wsas.activity.ActivityImple_4] - Cannot set
* completion status on activity as the status is incompatible:
@@ -410,13 +407,13 @@
/**
* Get the completion status currently associated with the activity.
- *
+ *
* @exception NoActivityException
* Thrown if there is no activity associated with the current
* thread.
* @exception SystemException
* Thrown if any other error occurs.
- *
+ *
* @return the termination status for the current activity, if any.
*/
@@ -430,10 +427,10 @@
/**
* Get the timeout value currently associated with activities.
- *
+ *
* @exception SystemException
* Thrown if any error occurs.
- *
+ *
* @return the timeout value in seconds, or 0 if no application specified
* timeout has been provided.
*/
@@ -446,10 +443,10 @@
/**
* @exception SystemException
* Thrown if any error occurs.
- *
+ *
* @return the status of the current activity. If there is no activity
* associated with the thread then NoActivity will be returned.
- *
+ *
* @see com.arjuna.mw.wsas.status.Status
*/
@@ -464,13 +461,13 @@
/**
* What is the name of the current activity? Use only for debugging
* purposes!
- *
+ *
* @exception NoActivityException
* Thrown if there is no activity associated with the
* invoking thread.
* @exception SystemException
* Thrown if any other error occurs.
- *
+ *
* @return the name of the activity.
*/
@@ -553,14 +550,14 @@
/**
* Check whether the specified completion status is compatible with the one
* currently assigned to the activity.
- *
+ *
* @param CompletionStatus
* cs The completion status to check.
- *
+ *
* @exception WrongStateException
* Thrown if the specified status is incompatible with that
* currently possessed by this activity.
- *
+ *
* @message com.arjuna.mwlabs.wsas.activity.ActivityImple_5
* [com.arjuna.mwlabs.wsas.activity.ActivityImple_5] - Cannot
* change completion status, value is incompatible:
@@ -585,10 +582,10 @@
/**
* Add the specified activity as a child of this activity.
- *
+ *
* @param ActivityImple
* child The child activity.
- *
+ *
* @exception WrongStateException
* Thrown if the parent activity is not in a state that
* allows children to be added.
@@ -596,7 +593,7 @@
* Thrown if the child activity is invalid.
* @exception SystemException
* Thrown if some other error occurs.
- *
+ *
* @message com.arjuna.mwlabs.wsas.activity.ActivityImple_6
* [com.arjuna.mwlabs.wsas.activity.ActivityImple_6] - Cannot
* enlist null child!
@@ -627,10 +624,10 @@
/**
* Remove the specified child activity from this activity.
- *
+ *
* @param ActivityImple
* child The child activity to remove.
- *
+ *
* @exception WrongStateException
* Thrown if the parent activity is not in a state that
* allows children to be removed.
@@ -638,7 +635,7 @@
* Thrown if the child activity is invalid.
* @exception SystemException
* Thrown if some other error occurs.
- *
+ *
* @message com.arjuna.mwlabs.wsas.activity.ActivityImple_8
* [com.arjuna.mwlabs.wsas.activity.ActivityImple_8] - Cannot
* remove null child!
Modified: labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/activity/ActivityReaper.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/activity/ActivityReaper.java 2009-05-18 14:26:17 UTC (rev 26591)
+++ labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/activity/ActivityReaper.java 2009-05-18 14:46:24 UTC (rev 26592)
@@ -1,8 +1,8 @@
/*
* 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
+ * 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
@@ -14,7 +14,7 @@
* 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.
*/
@@ -38,9 +38,6 @@
import com.arjuna.mw.wsas.completionstatus.*;
-import com.arjuna.mw.wsas.common.Environment;
-import com.arjuna.ats.internal.arjuna.template.OrderedListIterator;
-
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.Iterator;
@@ -90,7 +87,7 @@
*
* @message com.arjuna.mwlabs.wsas.activity.ActivityReaper_1 [com.arjuna.mwlabs.wsas.activity.ActivityReaper_1] - ActivityReaper: could not terminate.
*/
-
+
public final boolean check (long timeout)
{
ReaperElement element = null;
@@ -99,7 +96,7 @@
if (_list.isEmpty()) {
return false;
}
-
+
element = _list.first();
if (timeout < element._absoluteTimeout) {
return false;
@@ -111,7 +108,7 @@
*/
Status status = com.arjuna.mw.wsas.status.Unknown.instance();
-
+
try
{
status = element._activity.status();
@@ -119,7 +116,7 @@
catch (Exception ex)
{
}
-
+
if (status instanceof Active)
{
/*
@@ -128,7 +125,7 @@
*/
boolean problem = false;
-
+
try
{
/*
@@ -155,7 +152,7 @@
if (problem)
{
boolean error = false;
-
+
try
{
element._activity.setCompletionStatus(FailureOnly.instance());
@@ -164,7 +161,7 @@
{
error = true;
}
-
+
if (error)
{
wsasLogger.arjLoggerI18N.warn("com.arjuna.mwlabs.wsas.activity.ActivityReaper_1");
@@ -178,7 +175,7 @@
return true;
}
-
+
/**
* @return the number of items in the reaper's list.
*/
@@ -189,11 +186,11 @@
return _list.size();
}
}
-
+
/**
* timeout is given in seconds, but we work in milliseconds.
*/
-
+
public final boolean insert (ActivityImple activity, int timeout)
{
/*
@@ -203,13 +200,13 @@
if (timeout == 0)
return true;
-
+
ReaperElement e = new ReaperElement(activity, timeout);
synchronized (_list) {
_list.add(e);
}
-
+
// notify the reaper thread that the list has changed
synchronized (_reaperThread) {
_reaperThread.notify();
@@ -254,16 +251,16 @@
public static synchronized ActivityReaper create ()
{
// TODO -- problem here because nothing calls shutdown
-
+
if (_theReaper == null)
{
ActivityReaper._theReaper = new ActivityReaper();
-
+
_reaperThread = new ReaperThread(ActivityReaper._theReaper);
// _reaperThread.setPriority(Thread.MIN_PRIORITY);
_reaperThread.setDaemon(true);
-
+
_reaperThread.start();
}
@@ -286,7 +283,7 @@
else
return _theReaper;
}
-
+
/*
* Don't bother synchronizing as this is only an estimate anyway.
*/
@@ -302,7 +299,7 @@
{
_theReaper = null;
}
-
+
private SortedSet<ReaperElement> _list;
private static ActivityReaper _theReaper = null;
Modified: labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/util/HLSWrapper.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/util/HLSWrapper.java 2009-05-18 14:26:17 UTC (rev 26591)
+++ labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/util/HLSWrapper.java 2009-05-18 14:46:24 UTC (rev 26592)
@@ -1,8 +1,8 @@
/*
* 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
+ * 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
@@ -14,7 +14,7 @@
* 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.
*/
@@ -33,8 +33,6 @@
import com.arjuna.mw.wsas.activity.HLS;
-import com.arjuna.ats.internal.arjuna.template.OrderedListElement;
-
import com.arjuna.mw.wsas.exceptions.SystemException;
/**
@@ -50,12 +48,12 @@
{
_theHLS = hls;
}
-
+
public final HLS hls ()
{
return _theHLS;
}
-
+
private HLS _theHLS;
public int compareTo(HLSWrapper o) {
More information about the jboss-svn-commits
mailing list