Mail Archive Home | gotm-commits List | July 2005 Index
| <-- Date Index --> | <-- Thread Index --> |
Date: Monday, July 11, 2005 @ 10:27:02
Author: rouvoy
Path: /cvsroot/gotm/ow-transaction/src/java/org/objectweb/transaction
Added: api/logging/LoggerFeature.java api/logging/package.html
Modified: api/coordination/CoordinationFeature.java
api/event/PublishFeature.java api/event/SubscribeFeature.java
api/transaction/TransactionState.java
lib/resource/ResourceEventCommit.java
lib/resource/ResourceEventRollback.java
lib/resource/ResourceEventVote.java
Removed: api/transaction/TransactionActivationFeature.java
api/transaction/TransactionInterruptionFeature.java
* Adding XA interfaces support,
* Adding adaptive commit protocol support,
* Adding logging support,
* Cosmetic updates.
-----------------------------------------------------+
api/coordination/CoordinationFeature.java | 11 ++-
api/event/PublishFeature.java | 8 +-
api/event/SubscribeFeature.java | 14 ++--
api/logging/LoggerFeature.java | 56 ++++++++++++++++++
api/logging/package.html | 36 +++++++++++
api/transaction/TransactionActivationFeature.java | 48 ---------------
api/transaction/TransactionInterruptionFeature.java | 53 -----------------
api/transaction/TransactionState.java | 11 ++-
lib/resource/ResourceEventCommit.java | 6 -
lib/resource/ResourceEventRollback.java | 6 -
lib/resource/ResourceEventVote.java | 6 -
11 files changed, 128 insertions(+), 127 deletions(-)
Index:
ow-transaction/src/java/org/objectweb/transaction/api/coordination/CoordinationFeature.java
diff -u
ow-transaction/src/java/org/objectweb/transaction/api/coordination/CoordinationFeature.java:1.4
ow-transaction/src/java/org/objectweb/transaction/api/coordination/CoordinationFeature.java:1.5
---
ow-transaction/src/java/org/objectweb/transaction/api/coordination/CoordinationFeature.java:1.4
Fri Jan 14 17:51:31 2005
+++
ow-transaction/src/java/org/objectweb/transaction/api/coordination/CoordinationFeature.java
Mon Jul 11 10:27:02 2005
@@ -23,18 +23,20 @@
Contributor(s): ______________________________________.
---------------------------------------------------------------------
- $Id: CoordinationFeature.java,v 1.4 2005/01/14 16:51:31 rouvoy Exp $
+ $Id: CoordinationFeature.java,v 1.5 2005/07/11 08:27:02 rouvoy Exp $
====================================================================*/
package org.objectweb.transaction.api.coordination;
+import java.util.Map;
+
import org.objectweb.transaction.api.Feature;
/**
* Feature of validation for the commit engine.
* @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
* @created 5 janv. 2005
- * @modified $Date: 2005/01/14 16:51:31 $
- * @version $Revision: 1.4 $
+ * @modified $Date: 2005/07/11 08:27:02 $
+ * @version $Revision: 1.5 $
* @fractal.itf name="coord-process"
*/
public interface CoordinationFeature
@@ -45,6 +47,7 @@
/**
* Order for executing a Validation Process.
+ * @param context Contextual information.
*/
- public void process();
+ public void process(Map context);
}
Index:
ow-transaction/src/java/org/objectweb/transaction/api/event/PublishFeature.java
diff -u
ow-transaction/src/java/org/objectweb/transaction/api/event/PublishFeature.java:1.5
ow-transaction/src/java/org/objectweb/transaction/api/event/PublishFeature.java:1.6
---
ow-transaction/src/java/org/objectweb/transaction/api/event/PublishFeature.java:1.5
Mon May 23 13:20:59 2005
+++
ow-transaction/src/java/org/objectweb/transaction/api/event/PublishFeature.java
Mon Jul 11 10:27:02 2005
@@ -23,7 +23,7 @@
Contributor(s): .
---------------------------------------------------------------------
- $Id: PublishFeature.java,v 1.5 2005/05/23 11:20:59 rouvoy Exp $
+ $Id: PublishFeature.java,v 1.6 2005/07/11 08:27:02 rouvoy Exp $
====================================================================*/
package org.objectweb.transaction.api.event;
@@ -35,8 +35,8 @@
/**
* @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
* @created 5 janv. 2005
- * @modified $Date: 2005/05/23 11:20:59 $
- * @version $Revision: 1.5 $
+ * @modified $Date: 2005/07/11 08:27:02 $
+ * @version $Revision: 1.6 $
* @fractal.itf name="publish"
*/
public interface PublishFeature
@@ -49,5 +49,5 @@
* @param topic
* @param context
*/
- public void notify(int topic, Map context);
+ public void notify(Event topic, Map context);
}
Index:
ow-transaction/src/java/org/objectweb/transaction/api/event/SubscribeFeature.java
diff -u
ow-transaction/src/java/org/objectweb/transaction/api/event/SubscribeFeature.java:1.5
ow-transaction/src/java/org/objectweb/transaction/api/event/SubscribeFeature.java:1.6
---
ow-transaction/src/java/org/objectweb/transaction/api/event/SubscribeFeature.java:1.5
Mon May 23 13:20:58 2005
+++
ow-transaction/src/java/org/objectweb/transaction/api/event/SubscribeFeature.java
Mon Jul 11 10:27:02 2005
@@ -23,7 +23,7 @@
Contributor(s): .
---------------------------------------------------------------------
- $Id: SubscribeFeature.java,v 1.5 2005/05/23 11:20:58 rouvoy Exp $
+ $Id: SubscribeFeature.java,v 1.6 2005/07/11 08:27:02 rouvoy Exp $
====================================================================*/
package org.objectweb.transaction.api.event;
@@ -33,8 +33,8 @@
/**
* @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
* @created 5 janv. 2005
- * @modified $Date: 2005/05/23 11:20:58 $
- * @version $Revision: 1.5 $
+ * @modified $Date: 2005/07/11 08:27:02 $
+ * @version $Revision: 1.6 $
* @fractal.itf name="subscribe"
*/
public interface SubscribeFeature
@@ -47,23 +47,23 @@
* @param topic the subscribing topic.
* @param suscriber the handler notified of occurences of the subscribed
topic.
*/
- public void subscribe(int topic, PublishFeature suscriber) ;
+ public void subscribe(Event topic, PublishFeature suscriber) ;
/**
* @param topic the subscribing topic.
* @param suscriber the handler notified of occurences of the subscribed
topic.
*/
- public void unsubscribe(int topic, PublishFeature suscriber) ;
+ public void unsubscribe(Event topic, PublishFeature suscriber) ;
/**
* @param topics the set of subscribing topic
* @param suscriber the handler notified of occurences of the subscribed
topic.
*/
- public void subscribe(int[] topics, PublishFeature suscriber);
+ public void subscribe(Event[] topics, PublishFeature suscriber);
/**
* @param topics the set of subscribing topic
* @param suscriber the handler notified of occurences of the subscribed
topic.
*/
- public void unsubscribe(int[] topics, PublishFeature suscriber);
+ public void unsubscribe(Event[] topics, PublishFeature suscriber);
}
Index:
ow-transaction/src/java/org/objectweb/transaction/api/logging/LoggerFeature.java
diff -u /dev/null
ow-transaction/src/java/org/objectweb/transaction/api/logging/LoggerFeature.java:1.1
--- /dev/null Mon Jul 11 10:27:02 2005
+++
ow-transaction/src/java/org/objectweb/transaction/api/logging/LoggerFeature.java
Mon Jul 11 10:27:02 2005
@@ -0,0 +1,56 @@
+/*====================================================================
+
+GoTM: GoTM is an open Transaction Monitor
+Copyright (C) 2003-2005 INRIA - Jacquard & USTL - LIFL - GOAL
+Contact: gotm-team@xxxxxxxxxxxxx
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY 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 along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+USA
+
+Initial developer(s): Romain Rouvoy.
+Contributor(s): .
+
+---------------------------------------------------------------------
+$Id: LoggerFeature.java,v 1.1 2005/07/11 08:27:02 rouvoy Exp $
+====================================================================*/
+package org.objectweb.transaction.api.logging;
+
+import org.objectweb.transaction.api.Feature;
+
+/**
+ * @author <a href="mailto:serrano@xxxxxxx">Patricia Serrano-Alvarado</a>
+ * @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
+ * @created 7 juil. 2005
+ * @modified $Date: 2005/07/11 08:27:02 $
+ * @version $Revision: 1.1 $
+ * @fractal.itf name="log"
+ */
+public interface LoggerFeature
+ extends Feature {
+ /** Fractal ADL Identifier for the <code>LoggerFeature</code> interface.
*/
+ public static final String LOGGER = "log";
+
+ /**
+ * Logs the record with the identifier id.
+ * @param data the record to log.
+ */
+ public void log(byte[][] data);
+
+ /**
+ * Logs the record with the identifier id.
+ * @param data the record to log.
+ */
+ public void log(byte[] data);
+}
Index:
ow-transaction/src/java/org/objectweb/transaction/api/logging/package.html
diff -u /dev/null
ow-transaction/src/java/org/objectweb/transaction/api/logging/package.html:1.1
--- /dev/null Mon Jul 11 10:27:02 2005
+++
ow-transaction/src/java/org/objectweb/transaction/api/logging/package.html
Mon Jul 11 10:27:02 2005
@@ -0,0 +1,36 @@
+<!-- ==================================================================== -->
+
+<!-- ObjectWeb Transaction Working Group API -->
+<!-- Contact: http://www.objectweb.org -->
+
+<!-- This library is free software; you can redistribute it and/or -->
+<!-- modify it under the terms of the GNU Lesser General Public -->
+<!-- License as published by the Free Software Foundation; either -->
+<!-- version 2.1 of the License, or any later version. -->
+
+<!-- This library is distributed in the hope that it will be useful, -->
+<!-- but WITHOUT ANY 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 along with this library; if not, write to the Free Software -->
+<!-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -->
+<!-- USA -->
+
+<!-- Initial developer(s): Patricia Serrano-Alvarado, Romain Rouvoy. -->
+<!-- Contributor(s): ______________________________________. -->
+
+<!-- $Id: package.html,v 1.1 2005/07/11 08:27:02 rouvoy Exp $ -->
+<!-- ==================================================================== -->
+<html>
+ <body>
+ <p>
+ Specification of the <b>Logging</b> API.
+ </p>
+ <p>
+ This part includes only the interfaces dealing with the purpose of
logging.
+ This means mainly that only Atomicity properties are considered in
this part.
+ </p>
+ </body>
+</html>
Index:
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionActivationFeature.java
diff -u
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionActivationFeature.java:1.6
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionActivationFeature.java:removed
---
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionActivationFeature.java:1.6
Fri Jan 14 17:51:31 2005
+++
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionActivationFeature.java
Mon Jul 11 10:27:02 2005
@@ -1,48 +0,0 @@
-/*====================================================================
-
- ObjectWeb Transaction Working Group API
- Copyright (C) 2003-2005 INRIA - Jacquard & USTL - LIFL - GOAL
- Contact: http://www.objectweb.org
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY 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 along with this library; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- USA
-
- Initial developer(s): Romain Rouvoy.
- Contributor(s): ______________________________________.
-
- ---------------------------------------------------------------------
- $Id: TransactionActivationFeature.java,v 1.6 2005/01/14 16:51:31 rouvoy Exp
$
- ====================================================================*/
-package org.objectweb.transaction.api.transaction;
-
-import org.objectweb.transaction.api.Feature;
-
-/**
- * Defines the operation allowed when activating transactions.
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.6 $
- * @fractal.itf name="tx-activation"
- */
-public interface TransactionActivationFeature
-extends Feature
-{
- /** Fractal ADL Identifier for the <code>TX_ACTIVATION</code>
interface.*/
- public static final String TX_ACTIVATION = "tx-activation";
-
- /**
- * Starts a new transaction process.
- */
- public void begin();
-}
Index:
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionInterruptionFeature.java
diff -u
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionInterruptionFeature.java:1.4
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionInterruptionFeature.java:removed
---
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionInterruptionFeature.java:1.4
Fri Jan 14 17:51:31 2005
+++
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionInterruptionFeature.java
Mon Jul 11 10:27:02 2005
@@ -1,53 +0,0 @@
-/*====================================================================
-
- ObjectWeb Transaction Working Group API
- Copyright (C) 2003-2005 INRIA - Jacquard & USTL - LIFL - GOAL
- Contact: http://www.objectweb.org
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY 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 along with this library; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- USA
-
- Initial developer(s): Romain Rouvoy.
- Contributor(s): ______________________________________.
-
- ---------------------------------------------------------------------
- $Id: TransactionInterruptionFeature.java,v 1.4 2005/01/14 16:51:31 rouvoy
Exp $
- ====================================================================*/
-package org.objectweb.transaction.api.transaction;
-
-import org.objectweb.transaction.api.Feature;
-
-/**
- * Feature dealing with the interruption of a transaction.
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.4 $
- * @fractal.itf name="tx-interruption"
- */
-public interface TransactionInterruptionFeature
-extends Feature
-{
- /** Fractal ADL Identifier for the <code>TRANSACTION_INTERRUPTION</code>
interface. */
- public static final String TRANSACTION_INTERRUPTION ="tx-interruption";
-
- /**
- * Allows to suspend an active transaction.
- */
- public void suspend();
-
- /**
- * Allows to resume a previously suspended transaction.
- */
- public void resume();
-}
Index:
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionState.java
diff -u
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionState.java:1.5
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionState.java:1.6
---
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionState.java:1.5
Mon Jul 4 15:02:08 2005
+++
ow-transaction/src/java/org/objectweb/transaction/api/transaction/TransactionState.java
Mon Jul 11 10:27:02 2005
@@ -23,7 +23,7 @@
Contributor(s): ______________________________________.
---------------------------------------------------------------------
- $Id: TransactionState.java,v 1.5 2005/07/04 13:02:08 rouvoy Exp $
+ $Id: TransactionState.java,v 1.6 2005/07/11 08:27:02 rouvoy Exp $
====================================================================*/
package org.objectweb.transaction.api.transaction;
@@ -32,7 +32,7 @@
/**
* Description of the Transaction State.
* @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
* @fractal.itf name="tx-state"
*/
public interface TransactionState
@@ -59,4 +59,11 @@
* @return true if the current status is compliant with one of the
requested.
*/
public boolean checkStatus(TransactionStatus[] status);
+
+ /**
+ * Checks the current status.
+ * @param status the list of requested status
+ * @return true if the current status is compliant with one of the
requested.
+ */
+ public boolean checkStatus(TransactionStatus status);
}
Index:
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventCommit.java
diff -u
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventCommit.java:1.5
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventCommit.java:1.6
---
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventCommit.java:1.5
Mon May 23 13:20:58 2005
+++
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventCommit.java
Mon Jul 11 10:27:01 2005
@@ -23,7 +23,7 @@
Contributor(s): ______________________________________.
---------------------------------------------------------------------
- $Id: ResourceEventCommit.java,v 1.5 2005/05/23 11:20:58 rouvoy Exp $
+ $Id: ResourceEventCommit.java,v 1.6 2005/07/11 08:27:01 rouvoy Exp $
====================================================================*/
package org.objectweb.transaction.lib.resource;
@@ -35,7 +35,7 @@
/**
* ResourceEvent for the commit operation.
* @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class ResourceEventCommit
extends AbstractEvent
@@ -55,6 +55,6 @@
* @see java.lang.Object#toString()
*/
public String toString() {
- return "event-commit" ;
+ return "Commit Decision" ;
}
}
Index:
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventRollback.java
diff -u
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventRollback.java:1.5
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventRollback.java:1.6
---
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventRollback.java:1.5
Mon May 23 13:20:58 2005
+++
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventRollback.java
Mon Jul 11 10:27:01 2005
@@ -23,7 +23,7 @@
Contributor(s): ______________________________________.
---------------------------------------------------------------------
- $Id: ResourceEventRollback.java,v 1.5 2005/05/23 11:20:58 rouvoy Exp $
+ $Id: ResourceEventRollback.java,v 1.6 2005/07/11 08:27:01 rouvoy Exp $
====================================================================*/
package org.objectweb.transaction.lib.resource;
@@ -34,7 +34,7 @@
/**
* ResourceEvent representing the rollback operation.
* @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class ResourceEventRollback
extends AbstractEvent
@@ -54,6 +54,6 @@
* @see java.lang.Object#toString()
*/
public String toString() {
- return "event-rollback" ;
+ return "Rollback Decision" ;
}
}
Index:
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventVote.java
diff -u
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventVote.java:1.5
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventVote.java:1.6
---
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventVote.java:1.5
Mon May 23 13:20:58 2005
+++
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventVote.java
Mon Jul 11 10:27:01 2005
@@ -23,7 +23,7 @@
Contributor(s): ______________________________________.
---------------------------------------------------------------------
- $Id: ResourceEventVote.java,v 1.5 2005/05/23 11:20:58 rouvoy Exp $
+ $Id: ResourceEventVote.java,v 1.6 2005/07/11 08:27:01 rouvoy Exp $
====================================================================*/
package org.objectweb.transaction.lib.resource;
@@ -35,7 +35,7 @@
/**
* ResourceEvent for the prepare operation.
* @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class ResourceEventVote
extends AbstractEvent
@@ -55,6 +55,6 @@
* @see java.lang.Object#toString()
*/
public String toString() {
- return "event-vote" ;
+ return "Vote Decision" ;
}
}
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.