[Swift-commit] r6017 - trunk/src/org/griphyn/vdl/karajan

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Fri Nov 9 23:24:17 CST 2012


Author: hategan
Date: 2012-11-09 23:24:17 -0600 (Fri, 09 Nov 2012)
New Revision: 6017

Modified:
   trunk/src/org/griphyn/vdl/karajan/DSHandleFutureWrapper.java
   trunk/src/org/griphyn/vdl/karajan/FutureWrapper.java
Log:
added method to handle wrappers to access the handle

Modified: trunk/src/org/griphyn/vdl/karajan/DSHandleFutureWrapper.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/DSHandleFutureWrapper.java	2012-11-10 05:23:08 UTC (rev 6016)
+++ trunk/src/org/griphyn/vdl/karajan/DSHandleFutureWrapper.java	2012-11-10 05:24:17 UTC (rev 6017)
@@ -30,10 +30,11 @@
 import org.globus.cog.karajan.workflow.futures.FutureListener;
 import org.globus.cog.karajan.workflow.futures.ListenerStackPair;
 import org.griphyn.vdl.mapping.AbstractDataNode;
+import org.griphyn.vdl.mapping.DSHandle;
 
 public class DSHandleFutureWrapper implements FutureWrapper {
     private LinkedList<ListenerStackPair> listeners;
-    private AbstractDataNode node;
+    private final AbstractDataNode node;
     
     public DSHandleFutureWrapper(AbstractDataNode node) {
         this.node = node;
@@ -61,6 +62,10 @@
         // closed == true;
         notifyListeners();
     }
+    
+    public DSHandle getHandle() {
+    	return node;
+    }
 
     public void notifyListeners() {
         List<ListenerStackPair> l;

Modified: trunk/src/org/griphyn/vdl/karajan/FutureWrapper.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/FutureWrapper.java	2012-11-10 05:23:08 UTC (rev 6016)
+++ trunk/src/org/griphyn/vdl/karajan/FutureWrapper.java	2012-11-10 05:24:17 UTC (rev 6017)
@@ -19,6 +19,7 @@
 
 import org.globus.cog.karajan.workflow.events.EventTargetPair;
 import org.globus.cog.karajan.workflow.futures.Future;
+import org.griphyn.vdl.mapping.DSHandle;
 
 public interface FutureWrapper extends Future {
     void notifyListeners();
@@ -26,4 +27,6 @@
     int listenerCount();
 
     EventTargetPair[] getListenerEvents();
+    
+    DSHandle getHandle();
 }




More information about the Swift-commit mailing list