airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hes...@apache.org
Subject svn commit: r1359319 - in /incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client: api/ExecutionManager.java impl/ExecutionManagerImpl.java
Date Mon, 09 Jul 2012 18:06:21 GMT
Author: heshan
Date: Mon Jul  9 18:06:20 2012
New Revision: 1359319

URL: http://svn.apache.org/viewvc?rev=1359319&view=rev
Log:
Adding a method to the api to return a ExecutionContext.

Modified:
    incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/ExecutionManager.java
    incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/impl/ExecutionManagerImpl.java

Modified: incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/ExecutionManager.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/ExecutionManager.java?rev=1359319&r1=1359318&r2=1359319&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/ExecutionManager.java
(original)
+++ incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/ExecutionManager.java
Mon Jul  9 18:06:20 2012
@@ -24,6 +24,7 @@ package org.apache.airavata.client.api;
 import java.util.List;
 
 import org.apache.airavata.common.workflow.execution.context.WorkflowContextHeaderBuilder;
+import org.apache.airavata.core.gfac.context.invocation.impl.DefaultExecutionContext;
 import org.apache.airavata.workflow.model.wf.Workflow;
 import org.apache.airavata.workflow.model.wf.WorkflowInput;
 import org.apache.airavata.xbaya.monitor.Monitor;
@@ -110,4 +111,12 @@ public interface ExecutionManager {
 	 */
 	public WorkflowContextHeaderBuilder createWorkflowContextHeader() throws AiravataAPIInvocationException;
 
+
+    /**
+     * Creates a DefaultExecutionContext.
+     * @return DefaultExecutionContext
+     * @throws AiravataAPIInvocationException AiravataAPIInvocationException
+     */
+    public DefaultExecutionContext createDefaultExecutionContext() throws AiravataAPIInvocationException;
+
 }

Modified: incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/impl/ExecutionManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/impl/ExecutionManagerImpl.java?rev=1359319&r1=1359318&r2=1359319&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/impl/ExecutionManagerImpl.java
(original)
+++ incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/impl/ExecutionManagerImpl.java
Mon Jul  9 18:06:20 2012
@@ -29,6 +29,8 @@ import org.apache.airavata.client.Airava
 import org.apache.airavata.client.api.AiravataAPIInvocationException;
 import org.apache.airavata.client.api.ExecutionManager;
 import org.apache.airavata.common.workflow.execution.context.WorkflowContextHeaderBuilder;
+import org.apache.airavata.core.gfac.context.invocation.impl.DefaultExecutionContext;
+import org.apache.airavata.core.gfac.notification.impl.LoggingNotification;
 import org.apache.airavata.workflow.model.wf.Workflow;
 import org.apache.airavata.workflow.model.wf.WorkflowInput;
 import org.apache.airavata.xbaya.monitor.Monitor;
@@ -120,4 +122,12 @@ public class ExecutionManagerImpl implem
 		}
 	}
 
+    @Override
+    public DefaultExecutionContext createDefaultExecutionContext() throws AiravataAPIInvocationException
{
+        DefaultExecutionContext ec = new DefaultExecutionContext();
+        ec.addNotifiable(new LoggingNotification());
+        ec.setRegistryService(client.getRegistry());
+        return  ec;
+    }
+
 }



Mime
View raw message