airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject git commit: using app id instead of app name
Date Tue, 08 Jul 2014 20:50:18 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 5c00a8c5b -> c6bf09089


using app id instead of app name


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/c6bf0908
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/c6bf0908
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/c6bf0908

Branch: refs/heads/master
Commit: c6bf09089b559afd19c6fac0625938ec910e8399
Parents: 5c00a8c
Author: Saminda Wijeratne <samindaw@gmail.com>
Authored: Tue Jul 8 16:50:07 2014 -0400
Committer: Saminda Wijeratne <samindaw@gmail.com>
Committed: Tue Jul 8 16:50:07 2014 -0400

----------------------------------------------------------------------
 .../client/samples/CreateLaunchExperiment.java  | 20 ++------------------
 1 file changed, 2 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/c6bf0908/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java
b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java
index c5fe434..e3c9afc 100644
--- a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java
+++ b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java
@@ -211,22 +211,6 @@ public class CreateLaunchExperiment {
 		}
     }
 
-    private static AiravataAPI getAiravataAPI() throws AiravataAPIInvocationException, ApplicationSettingsException
{
-        AiravataAPI airavataAPI;
-        try {
-            String sysUser = ClientSettings.getSetting(DEFAULT_USER);
-            String gateway = ClientSettings.getSetting(DEFAULT_GATEWAY);
-            airavataAPI = AiravataAPIFactory.getAPI(gateway, sysUser);
-        } catch (AiravataAPIInvocationException e) {
-            logger.error("Unable to create airavata API", e.getMessage());
-            throw new AiravataAPIInvocationException(e);
-        } catch (ApplicationSettingsException e) {
-            logger.error("Unable to create airavata API", e.getMessage());
-            throw new ApplicationSettingsException(e.getMessage());
-        }
-        return airavataAPI;
-    }
-
     public static String createExperimentForTrestles(Airavata.Client client) throws TException
{
         try {
             List<DataObjectType> exInputs = new ArrayList<DataObjectType>();
@@ -309,7 +293,7 @@ public class CreateLaunchExperiment {
 
 
             Experiment simpleExperiment =
-                    ExperimentModelUtil.createSimpleExperiment("default", "admin", "WRFExperiment",
"Testing", "WRF", exInputs);
+                    ExperimentModelUtil.createSimpleExperiment("default", "admin", "WRFExperiment",
"Testing", pbsWRFAppId, exInputs);
             simpleExperiment.setExperimentOutputs(exOut);
 
             ComputationalResourceScheduling scheduling = ExperimentModelUtil.createComputationResourceScheduling("trestles.sdsc.edu",
32, 2, 1, "normal", 0, 0, 1, "sds128");
@@ -512,7 +496,7 @@ public class CreateLaunchExperiment {
             String projectId = client.createProject(project);
 
             Experiment simpleExperiment =
-                    ExperimentModelUtil.createSimpleExperiment(projectId, "admin", "echoExperiment",
"SimpleEcho4", "Echo", exInputs);
+                    ExperimentModelUtil.createSimpleExperiment(projectId, "admin", "echoExperiment",
"SimpleEcho4", sgeAppId, exInputs);
             simpleExperiment.setExperimentOutputs(exOut);
 
             ComputationalResourceScheduling scheduling =


Mime
View raw message