airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramin...@apache.org
Subject git commit: fixed create and launch experiment
Date Thu, 10 Jul 2014 20:32:10 GMT
Repository: airavata
Updated Branches:
  refs/heads/master eeefbc2b6 -> ea7c19be0


fixed create and launch experiment


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

Branch: refs/heads/master
Commit: ea7c19be06a78a49ea28af32183fae13f2959a4f
Parents: eeefbc2
Author: raminder <raminder@apache.org>
Authored: Thu Jul 10 16:32:01 2014 -0400
Committer: raminder <raminder@apache.org>
Committed: Thu Jul 10 16:32:01 2014 -0400

----------------------------------------------------------------------
 .../resources/php-cli-samples/createExperiment.php  | 16 +++++++++-------
 .../resources/php-cli-samples/launchExperiment.php  |  2 +-
 2 files changed, 10 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/ea7c19be/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples/createExperiment.php
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples/createExperiment.php
b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples/createExperiment.php
index f87258c..26669e0 100755
--- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples/createExperiment.php
+++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples/createExperiment.php
@@ -28,6 +28,8 @@ include 'getAiravataClient.php';
 global $airavataclient;
 global $transport;
 
+$appId = 'SimpleEcho3_ca40f7c6-69ba-4f89-918d-9937cea0ca8f';
+$hostID = 'stampede.tacc.xsede.org_8f20b832-c11a-444b-8e73-bf15f4760b9a';
 try
 {
     if ($argc != 4)
@@ -38,7 +40,7 @@ try
     {
         /* ComputationalResourceScheduling data for Trestles*/
         $cmRST = new ComputationalResourceScheduling();
-        $cmRST->resourceHostId = "trestles.sdsc.edu";
+        $cmRST->resourceHostId = $hostID;
         $cmRST->ComputationalProjectAccount = "sds128";
         $cmRST->totalCPUCount = 1;
         $cmRST->nodeCount = 1;
@@ -50,7 +52,7 @@ try
 
         /* ComputationalResourceScheduling data for Stampede */
         $cmRSS = new ComputationalResourceScheduling();
-        $cmRSS->resourceHostId = "stampede.tacc.xsede.org";
+        $cmRSS->resourceHostId = $hostID;
         $cmRSS->ComputationalProjectAccount = "TG-STA110014S";
         $cmRSS->totalCPUCount = 1;
         $cmRSS->nodeCount = 1;
@@ -61,8 +63,8 @@ try
         $cmRSS->totalPhysicalMemory = 0;
 
         /* UserConfigurationData using either Trestles or Stampede*/
-        //$cmRS = $cmRSS;
-        $cmRS = $cmRST;
+        $cmRS = $cmRSS;
+	// $cmRS = $cmRST;
         $userConfigurationData = new UserConfigurationData();
         $userConfigurationData->airavataAutoSchedule = 0;
         $userConfigurationData->overrideManualScheduledParams = 0;
@@ -71,10 +73,10 @@ try
         //var_dump($userConfigurationData);
 
         /*Application ID for Trestles or Stamepede */
-        $appId_trestles = "SimpleEcho2";
-        $appId_stampede = "SimpleEcho3";
+        //$appId_trestles = "SimpleEcho2";
+        //$appId_stampede = "SimpleEcho3";
         //$appId = $appId_stampede;
-        $appId = $appId_trestles;
+        //$appId = $appId_trestles;
 
         /* Experiment input and output data. */
         $input = new DataObjectType();

http://git-wip-us.apache.org/repos/asf/airavata/blob/ea7c19be/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples/launchExperiment.php
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples/launchExperiment.php
b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples/launchExperiment.php
index 5b5b8fa..b2e7108 100755
--- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples/launchExperiment.php
+++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples/launchExperiment.php
@@ -28,7 +28,7 @@ try
    }
 
    $expId = $argv[1];	
-   $airavataclient->launchExperiment($expId, 'airavataToken');
+   $airavataclient->launchExperiment($expId, '7a8b801f-23e7-465f-b5e4-3cf1e8bee2ab');
    echo "Experiment $expId is launched.";
 }
 catch (InvalidRequestException $ire)


Mime
View raw message