airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramin...@apache.org
Subject [1/4] git commit: Updated the client with new parameters.
Date Thu, 28 Aug 2014 15:45:17 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 6821ce1ac -> 4adcce986


Updated the client with new parameters. 

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

Branch: refs/heads/master
Commit: b3775eca9affdbb9cc5306697913790f763ce443
Parents: 21cae7e
Author: raminder <raminder@apache.org>
Authored: Mon Aug 25 12:00:09 2014 -0400
Committer: raminder <raminder@apache.org>
Committed: Mon Aug 25 12:00:09 2014 -0400

----------------------------------------------------------------------
 .../samples/CreateLaunchExperimentUS3.java      | 54 ++++++++++++++++++--
 .../client/tools/RegisterUS3Application.java    | 12 ++---
 2 files changed, 57 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/b3775eca/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperimentUS3.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperimentUS3.java
b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperimentUS3.java
index b8aebc8..8fa3b70 100644
--- a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperimentUS3.java
+++ b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperimentUS3.java
@@ -61,8 +61,8 @@ public class CreateLaunchExperimentUS3 {
 //            addDescriptors();
 //            final String expId = createUS3ExperimentForTrestles(airavata);
 //            final String expId = createUS3ExperimentForStampede(airavata);
-//            final String expId = createUS3ExperimentForLonestar(airavata);
-            final String expId =  createUS3ExperimentForAlamo(airavata);
+            final String expId = createUS3ExperimentForLonestar(airavata);
+//            final String expId =  createUS3ExperimentForAlamo(airavata);
             System.out.println("Experiment ID : " + expId);
             launchExperiment(airavata, expId);
             System.out.println("Launched successfully");
@@ -104,7 +104,9 @@ public class CreateLaunchExperimentUS3 {
             } catch (InterruptedException e) {
                 e.printStackTrace();  //To change body of catch statement use File | Settings
| File Templates.
             }
-
+            
+//            airavata.terminateExperiment(expId);
+     
 //            Experiment experiment = airavata.getExperiment(expId);
 //            System.out.println("retrieved exp id : " + experiment.getExperimentID());
         } catch (Exception e) {
@@ -197,7 +199,18 @@ public class CreateLaunchExperimentUS3 {
             input.setKey("input");
             input.setType(DataType.URI);
             input.setValue("file:///home/airavata/input/hpcinput.tar");
+            DataObjectType input1 = new DataObjectType();
+            input1.setKey("walltime");
+            input1.setType(DataType.STRING);
+            input1.setValue("-walltime=60");
+            DataObjectType input2 = new DataObjectType();
+            input2.setKey("mgroupcount");
+            input2.setType(DataType.STRING);
+            input2.setValue("-mgroupcount=1");
+            
             exInputs.add(input);
+            exInputs.add(input1);
+            exInputs.add(input2);
 
             List<DataObjectType> exOut = new ArrayList<DataObjectType>();
             DataObjectType output = new DataObjectType();
@@ -257,7 +270,19 @@ public class CreateLaunchExperimentUS3 {
             input.setKey("input");
             input.setType(DataType.URI);
             input.setValue("file:///home/airavata/input/hpcinput.tar");
+            DataObjectType input1 = new DataObjectType();
+            input1.setKey("walltime");
+            input1.setType(DataType.STRING);
+            input1.setValue("-walltime=60");
+            DataObjectType input2 = new DataObjectType();
+            input2.setKey("mgroupcount");
+            input2.setType(DataType.STRING);
+            input2.setValue("-mgroupcount=1");
+            
             exInputs.add(input);
+            exInputs.add(input1);
+            exInputs.add(input2);
+
 
             List<DataObjectType> exOut = new ArrayList<DataObjectType>();
             DataObjectType output = new DataObjectType();
@@ -318,7 +343,18 @@ public class CreateLaunchExperimentUS3 {
             input.setKey("input");
             input.setType(DataType.URI);
             input.setValue("file:///home/airavata/input/hpcinput.tar");
+            DataObjectType input1 = new DataObjectType();
+            input1.setKey("walltime");
+            input1.setType(DataType.STRING);
+            input1.setValue("-walltime=60");
+            DataObjectType input2 = new DataObjectType();
+            input2.setKey("mgroupcount");
+            input2.setType(DataType.STRING);
+            input2.setValue("-mgroupcount=1");
+            
             exInputs.add(input);
+            exInputs.add(input1);
+            exInputs.add(input2);
 
             List<DataObjectType> exOut = new ArrayList<DataObjectType>();
             DataObjectType output = new DataObjectType();
@@ -379,7 +415,19 @@ public class CreateLaunchExperimentUS3 {
             input.setKey("input");
             input.setType(DataType.URI);
             input.setValue("file:///home/airavata/input/hpcinput.tar");
+            DataObjectType input1 = new DataObjectType();
+            input1.setKey("walltime");
+            input1.setType(DataType.STRING);
+            input1.setValue("-walltime=60");
+            DataObjectType input2 = new DataObjectType();
+            input2.setKey("mgroupcount");
+            input2.setType(DataType.STRING);
+            input2.setValue("-mgroupcount=1");
+            
             exInputs.add(input);
+            exInputs.add(input1);
+            exInputs.add(input2);
+
 
             List<DataObjectType> exOut = new ArrayList<DataObjectType>();
             DataObjectType output = new DataObjectType();

http://git-wip-us.apache.org/repos/asf/airavata/blob/b3775eca/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/tools/RegisterUS3Application.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/tools/RegisterUS3Application.java
b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/tools/RegisterUS3Application.java
index e98aa07..9f59a4f 100644
--- a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/tools/RegisterUS3Application.java
+++ b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/tools/RegisterUS3Application.java
@@ -1,7 +1,5 @@
 package org.apache.airavata.client.tools;
 
-import java.math.BigInteger;
-import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
@@ -31,9 +29,12 @@ public class RegisterUS3Application {
 	
 	private final static Logger logger = LoggerFactory.getLogger(RegisterSampleApplications.class);
     
-	public static final String THRIFT_SERVER_HOST = "gridfarm005.ucs.indiana.edu";
-    public static final int THRIFT_SERVER_PORT = 8930;
-    private static final String DEFAULT_GATEWAY = "default";
+//	public static final String THRIFT_SERVER_HOST = "gridfarm005.ucs.indiana.edu";
+//  public static final int THRIFT_SERVER_PORT = 8930;
+	private static final String DEFAULT_GATEWAY= "default"; 
+	public static final String THRIFT_SERVER_HOST = "gw111.iu.xsede.org";
+	public static final int THRIFT_SERVER_PORT = 9930;		
+//    private static final String DEFAULT_GATEWAY = "ultrascan";
     private static Airavata.Client airavataClient;
 
     //Host Id's
@@ -224,7 +225,6 @@ public class RegisterUS3Application {
                             "/mnt/glusterfs/work/");
 
             GatewayResourceProfile gatewayResourceProfile = new GatewayResourceProfile();
-            gatewayResourceProfile.setGatewayID(DEFAULT_GATEWAY);
             gatewayResourceProfile.setGatewayName(DEFAULT_GATEWAY);
             gatewayResourceProfile.addToComputeResourcePreferences(stampedeResourcePreferences);
             gatewayResourceProfile.addToComputeResourcePreferences(trestlesResourcePreferences);


Mime
View raw message