[SAGA-RG] saga-ogf SVN commit 1287: /trunk/documents/saga-core-binding-java/implementation/VU/src/org/ogf/saga/task/

ceriel at cs.vu.nl ceriel at cs.vu.nl
Fri Sep 24 09:02:39 CDT 2010


User: svn_ceriel
Date: 2010/09/24 09:02 AM

Modified:
 /trunk/documents/saga-core-binding-java/implementation/VU/src/org/ogf/saga/task/
  TaskContainer.java

Log:
 TaskContainer.add() now no longer throws AlreadyExists.

File Changes:

Directory: /trunk/documents/saga-core-binding-java/implementation/VU/src/org/ogf/saga/task/
===========================================================================================

File [modified]: TaskContainer.java
Delta lines: +2 -5
===================================================================
--- trunk/documents/saga-core-binding-java/implementation/VU/src/org/ogf/saga/task/TaskContainer.java	2010-09-23 09:54:03 UTC (rev 1286)
+++ trunk/documents/saga-core-binding-java/implementation/VU/src/org/ogf/saga/task/TaskContainer.java	2010-09-24 13:56:15 UTC (rev 1287)
@@ -1,7 +1,6 @@
 package org.ogf.saga.task;
 
 import org.ogf.saga.SagaObject;
-import org.ogf.saga.error.AlreadyExistsException;
 import org.ogf.saga.error.DoesNotExistException;
 import org.ogf.saga.error.IncorrectStateException;
 import org.ogf.saga.error.NoSuccessException;
@@ -28,15 +27,13 @@
     
     /**
      * Adds a task to the task container. If the container already contains the
-     * task, an exception is thrown.
+     * task, the method returns silently.
      * 
      * @param task
      *      the task to add.
      * @exception NotImplementedException
      *      is thrown if the implementation does not provide an
      *      implementation of this method.
-     * @exception AlreadyExistsException
-     *      is thrown when the container already contains the specified task.
      * @exception TimeoutException
      *      is thrown when a remote operation did not complete successfully
      *      because the network communication or the remote service timed
@@ -46,7 +43,7 @@
      *      and none of the other exceptions apply.
      */
     public void add(Task<?,?> task) throws NotImplementedException, TimeoutException,
-            AlreadyExistsException, NoSuccessException;
+            NoSuccessException;
 
     /**
      * Removes the specified task from this container.



More information about the saga-rg mailing list