airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject git commit: Revert last commit to CreateLauncherExperiment class
Date Wed, 24 Sep 2014 04:04:44 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 6a11b29db -> cc0f8eceb


Revert last commit to CreateLauncherExperiment class


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

Branch: refs/heads/master
Commit: cc0f8ecebcadd07e4a3295f2df2739af7864f1f6
Parents: 6a11b29
Author: shamrath <shameerainfo@gmail.com>
Authored: Tue Sep 23 18:58:58 2014 -0400
Committer: shamrath <shameerainfo@gmail.com>
Committed: Tue Sep 23 18:58:58 2014 -0400

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


http://git-wip-us.apache.org/repos/asf/airavata/blob/cc0f8ece/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 b0f7582..a3dd336 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
@@ -34,15 +34,14 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 import java.util.ArrayList;
-import java.util.Date;
 import java.util.List;
 import java.util.Map;
 
 public class CreateLaunchExperiment {
 
     //FIXME: Read from a config file
-    public static final String THRIFT_SERVER_HOST = "149.165.228.109";
-    public static final int THRIFT_SERVER_PORT = 9930;
+    public static final String THRIFT_SERVER_HOST = "localhost";
+    public static final int THRIFT_SERVER_PORT = 8930;
     private final static Logger logger = LoggerFactory.getLogger(CreateLaunchExperiment.class);
     private static final String DEFAULT_USER = "default.registry.user";
     private static final String DEFAULT_GATEWAY = "default.registry.gateway";
@@ -51,7 +50,7 @@ public class CreateLaunchExperiment {
     private static String wrfAppId = "WRF_5f097c9c-7066-49ec-aed7-4e39607b3adc";
     private static String amberAppId = "Amber_89906be6-5678-49a6-9d04-a0604fbdef2e";
 
-    private static String localHost = "149.165.228.109";
+    private static String localHost = "localhost";
     private static String trestlesHostName = "trestles.sdsc.xsede.org";
     private static String stampedeHostName = "stampede.tacc.xsede.org";
     private static String br2HostName = "bigred2.uits.iu.edu";
@@ -60,27 +59,23 @@ public class CreateLaunchExperiment {
         try {
             airavataClient = AiravataClientFactory.createAiravataClient(THRIFT_SERVER_HOST,
THRIFT_SERVER_PORT);
             System.out.println("API version is " + airavataClient.getAPIVersion());
-//            registerApplications();
-            Date date = new Date();
-            long time = date.getTime();
-            int numberOfRequests = 1;
-            for (int i = 0; i < numberOfRequests; i++) {
-//                (new Thread() {
-//                    @Override
-//                    public void run() {
-                        try {
-                            launchExperiment(airavataClient, createExperimentForBR2(airavataClient));
-                        } catch (Exception e) {
-                            logger.error("Error while connecting with server", e.getMessage());
-                            e.printStackTrace();
-                        }
-                    }
-            long time1 = (date.getTime()-time);
-            System.out.println("Number of requests: " + numberOfRequests + " time taken Miliseconds:
" + time1);
-
-//                }).start();
-//            }
-
+//            registerApplications(); // run this only the first time
+
+//            final String expId = createExperimentForSSHHost(airavata);
+//            final String expId = createEchoExperimentForTrestles(airavataClient);
+//            final String expId = createEchoExperimentForStampede(airavataClient);
+//            final String expId = createExperimentEchoForLocalHost(airavataClient);
+//            final String expId = createExperimentWRFTrestles(airavataClient);
+//            final String expId = createExperimentForBR2(airavataClient);
+//            final String expId = createExperimentForBR2Amber(airavataClient);
+//            final String expId = createExperimentWRFStampede(airavataClient);
+//            final String expId = createExperimentForStampedeAmber(airavataClient);
+//            final String expId = createExperimentForTrestlesAmber(airavataClient);
+
+//            System.out.println("Experiment ID : " + expId);
+//            updateExperiment(airavata, expId);
+//              launchExperiment(airavataClient, expId);
+//              System.out.println(expId);
         } catch (Exception e) {
             logger.error("Error while connecting with server", e.getMessage());
             e.printStackTrace();


Mime
View raw message