You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sa...@apache.org on 2014/04/17 04:17:24 UTC
[15/31] git commit: AIRAVATA-1143
AIRAVATA-1143
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/46205e6c
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/46205e6c
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/46205e6c
Branch: refs/heads/master
Commit: 46205e6c87f2011df91d7956a9f2347d63fb6c2f
Parents: d3fb569
Author: Saminda Wijeratne <sa...@gmail.com>
Authored: Wed Apr 16 19:06:34 2014 -0700
Committer: Saminda Wijeratne <sa...@gmail.com>
Committed: Wed Apr 16 19:06:34 2014 -0700
----------------------------------------------------------------------
.../airavata-php-sdk/README | 5 -
.../client-samples/GetAiravataVersion.php | 18 -
.../client-samples/airavata-client-sample.php | 93 -
.../lib/Airavata/API/Airavata.php | 4849 ------------------
.../lib/Airavata/API/Error/Types.php | 583 ---
.../airavata-php-sdk/lib/Airavata/API/Types.php | 22 -
.../lib/Airavata/Model/Types.php | 20 -
.../Model/Workspace/Experiment/Types.php | 3670 -------------
.../lib/Airavata/Model/Workspace/Types.php | 568 --
.../lib/AiravataClientFactory.php | 45 -
.../airavata-php-sdk/lib/Thrift/Base/TBase.php | 367 --
.../Thrift/ClassLoader/ThriftClassLoader.php | 223 -
.../Thrift/Exception/TApplicationException.php | 72 -
.../lib/Thrift/Exception/TException.php | 369 --
.../lib/Thrift/Exception/TProtocolException.php | 48 -
.../Thrift/Exception/TTransportException.php | 41 -
.../Thrift/Factory/TBinaryProtocolFactory.php | 43 -
.../Thrift/Factory/TCompactProtocolFactory.php | 39 -
.../lib/Thrift/Factory/TJSONProtocolFactory.php | 41 -
.../lib/Thrift/Factory/TProtocolFactory.php | 35 -
.../lib/Thrift/Factory/TStringFuncFactory.php | 63 -
.../lib/Thrift/Factory/TTransportFactory.php | 16 -
.../lib/Thrift/Protocol/JSON/BaseContext.php | 39 -
.../lib/Thrift/Protocol/JSON/ListContext.php | 52 -
.../Thrift/Protocol/JSON/LookaheadReader.php | 54 -
.../lib/Thrift/Protocol/JSON/PairContext.php | 60 -
.../lib/Thrift/Protocol/TBinaryProtocol.php | 396 --
.../Protocol/TBinaryProtocolAccelerated.php | 47 -
.../lib/Thrift/Protocol/TCompactProtocol.php | 669 ---
.../lib/Thrift/Protocol/TJSONProtocol.php | 694 ---
.../lib/Thrift/Protocol/TProtocol.php | 340 --
.../lib/Thrift/Serializer/TBinarySerializer.php | 73 -
.../lib/Thrift/Server/TForkingServer.php | 119 -
.../lib/Thrift/Server/TServer.php | 101 -
.../lib/Thrift/Server/TServerSocket.php | 98 -
.../lib/Thrift/Server/TServerTransport.php | 54 -
.../lib/Thrift/Server/TSimpleServer.php | 57 -
.../lib/Thrift/StringFunc/Core.php | 38 -
.../lib/Thrift/StringFunc/Mbstring.php | 45 -
.../lib/Thrift/StringFunc/TStringFunc.php | 27 -
.../airavata-php-sdk/lib/Thrift/Thrift.php | 789 ---
.../lib/Thrift/Transport/TBufferedTransport.php | 165 -
.../lib/Thrift/Transport/TFramedTransport.php | 183 -
.../lib/Thrift/Transport/THttpClient.php | 221 -
.../lib/Thrift/Transport/TMemoryBuffer.php | 89 -
.../lib/Thrift/Transport/TNullTransport.php | 50 -
.../lib/Thrift/Transport/TPhpStream.php | 114 -
.../lib/Thrift/Transport/TSocket.php | 326 --
.../lib/Thrift/Transport/TSocketPool.php | 295 --
.../lib/Thrift/Transport/TTransport.php | 93 -
.../lib/Thrift/Type/TMessageType.php | 33 -
.../airavata-php-sdk/lib/Thrift/Type/TType.php | 46 -
.../airavata-php-sdk/lib/Thrift/autoload.php | 51 -
.../airavata-php-sdk/pom.xml | 114 +
.../src/main/assembly/bin-assembly.xml | 63 +
.../airavata-php-sdk/src/main/resources/INSTALL | 31 +
.../airavata-php-sdk/src/main/resources/LICENSE | 2272 ++++++++
.../airavata-php-sdk/src/main/resources/NOTICE | 163 +
.../airavata-php-sdk/src/main/resources/README | 5 +
.../resources/lib/Airavata/API/Airavata.php | 4849 ++++++++++++++++++
.../resources/lib/Airavata/API/Error/Types.php | 583 +++
.../main/resources/lib/Airavata/API/Types.php | 22 +
.../main/resources/lib/Airavata/Model/Types.php | 20 +
.../Model/Workspace/Experiment/Types.php | 3670 +++++++++++++
.../lib/Airavata/Model/Workspace/Types.php | 568 ++
.../resources/lib/AiravataClientFactory.php | 45 +
.../main/resources/lib/Thrift/Base/TBase.php | 367 ++
.../Thrift/ClassLoader/ThriftClassLoader.php | 223 +
.../Thrift/Exception/TApplicationException.php | 72 +
.../lib/Thrift/Exception/TException.php | 369 ++
.../lib/Thrift/Exception/TProtocolException.php | 48 +
.../Thrift/Exception/TTransportException.php | 41 +
.../Thrift/Factory/TBinaryProtocolFactory.php | 43 +
.../Thrift/Factory/TCompactProtocolFactory.php | 39 +
.../lib/Thrift/Factory/TJSONProtocolFactory.php | 41 +
.../lib/Thrift/Factory/TProtocolFactory.php | 35 +
.../lib/Thrift/Factory/TStringFuncFactory.php | 63 +
.../lib/Thrift/Factory/TTransportFactory.php | 16 +
.../lib/Thrift/Protocol/JSON/BaseContext.php | 39 +
.../lib/Thrift/Protocol/JSON/ListContext.php | 52 +
.../Thrift/Protocol/JSON/LookaheadReader.php | 54 +
.../lib/Thrift/Protocol/JSON/PairContext.php | 60 +
.../lib/Thrift/Protocol/TBinaryProtocol.php | 396 ++
.../Protocol/TBinaryProtocolAccelerated.php | 47 +
.../lib/Thrift/Protocol/TCompactProtocol.php | 669 +++
.../lib/Thrift/Protocol/TJSONProtocol.php | 694 +++
.../resources/lib/Thrift/Protocol/TProtocol.php | 340 ++
.../lib/Thrift/Serializer/TBinarySerializer.php | 73 +
.../lib/Thrift/Server/TForkingServer.php | 119 +
.../resources/lib/Thrift/Server/TServer.php | 101 +
.../lib/Thrift/Server/TServerSocket.php | 98 +
.../lib/Thrift/Server/TServerTransport.php | 54 +
.../lib/Thrift/Server/TSimpleServer.php | 57 +
.../resources/lib/Thrift/StringFunc/Core.php | 38 +
.../lib/Thrift/StringFunc/Mbstring.php | 45 +
.../lib/Thrift/StringFunc/TStringFunc.php | 27 +
.../src/main/resources/lib/Thrift/Thrift.php | 789 +++
.../lib/Thrift/Transport/TBufferedTransport.php | 165 +
.../lib/Thrift/Transport/TFramedTransport.php | 183 +
.../lib/Thrift/Transport/THttpClient.php | 221 +
.../lib/Thrift/Transport/TMemoryBuffer.php | 89 +
.../lib/Thrift/Transport/TNullTransport.php | 50 +
.../lib/Thrift/Transport/TPhpStream.php | 114 +
.../resources/lib/Thrift/Transport/TSocket.php | 326 ++
.../lib/Thrift/Transport/TSocketPool.php | 295 ++
.../lib/Thrift/Transport/TTransport.php | 93 +
.../resources/lib/Thrift/Type/TMessageType.php | 33 +
.../main/resources/lib/Thrift/Type/TType.php | 46 +
.../src/main/resources/lib/Thrift/autoload.php | 51 +
.../resources/samples/GetAiravataVersion.php | 18 +
.../samples/airavata-client-sample.php | 93 +
111 files changed, 19291 insertions(+), 16648 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata/blob/46205e6c/airavata-api/airavata-client-sdks/airavata-php-sdk/README
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/README b/airavata-api/airavata-client-sdks/airavata-php-sdk/README
deleted file mode 100644
index 9c91811..0000000
--- a/airavata-api/airavata-client-sdks/airavata-php-sdk/README
+++ /dev/null
@@ -1,5 +0,0 @@
-Apache Airavata Thrift PHP Software Development Kit.
-
-The lib directory has THRIFT files and Airavata generated PHP stubs.
-
-The samples directory has example PHP code.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/airavata/blob/46205e6c/airavata-api/airavata-client-sdks/airavata-php-sdk/client-samples/GetAiravataVersion.php
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/client-samples/GetAiravataVersion.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/client-samples/GetAiravataVersion.php
deleted file mode 100644
index c1cd799..0000000
--- a/airavata-api/airavata-client-sdks/airavata-php-sdk/client-samples/GetAiravataVersion.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-//use Airavata\Client;
-
-ini_set("include_path", ini_get("include_path") . PATH_SEPARATOR . "../lib" . PATH_SEPARATOR .
- "../lib/Thrift" . PATH_SEPARATOR . "../lib/Airavata/" . PATH_SEPARATOR);
-require_once 'autoload.php';
-
-require_once 'AiravataClientFactory.php';
-
-use Airavata\Client\AiravataClientFactory;
-
-$airavataClientFactory = new AiravataClientFactory(array('airavataServerHost' => "gw111.iu.xsede.org", 'airavataServerPort' => "8930"));
-
-$airavata = $airavataClientFactory->getAiravataClient();
-
-echo "Airavata Server Version is: " . $airavata->GetAPIVersion() . "\n";
-
http://git-wip-us.apache.org/repos/asf/airavata/blob/46205e6c/airavata-api/airavata-client-sdks/airavata-php-sdk/client-samples/airavata-client-sample.php
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/client-samples/airavata-client-sample.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/client-samples/airavata-client-sample.php
deleted file mode 100644
index 4953cee..0000000
--- a/airavata-api/airavata-client-sdks/airavata-php-sdk/client-samples/airavata-client-sample.php
+++ /dev/null
@@ -1,93 +0,0 @@
-<?php
-namespace Airavata\Client\Samples;
-
-$GLOBALS['THRIFT_ROOT'] = '../lib/Thrift/';
-require_once $GLOBALS['THRIFT_ROOT'] . 'Transport/TTransport.php';
-require_once $GLOBALS['THRIFT_ROOT'] . 'Transport/TSocket.php';
-require_once $GLOBALS['THRIFT_ROOT'] . 'Protocol/TProtocol.php';
-require_once $GLOBALS['THRIFT_ROOT'] . 'Protocol/TBinaryProtocol.php';
-require_once $GLOBALS['THRIFT_ROOT'] . 'Exception/TException.php';
-require_once $GLOBALS['THRIFT_ROOT'] . 'Exception/TApplicationException.php';
-require_once $GLOBALS['THRIFT_ROOT'] . 'Exception/TProtocolException.php';
-require_once $GLOBALS['THRIFT_ROOT'] . 'Base/TBase.php';
-require_once $GLOBALS['THRIFT_ROOT'] . 'Type/TType.php';
-require_once $GLOBALS['THRIFT_ROOT'] . 'Type/TMessageType.php';
-require_once $GLOBALS['THRIFT_ROOT'] . 'Factory/TStringFuncFactory.php';
-require_once $GLOBALS['THRIFT_ROOT'] . 'StringFunc/TStringFunc.php';
-require_once $GLOBALS['THRIFT_ROOT'] . 'StringFunc/Core.php';
-
-$GLOBALS['AIRAVATA_ROOT'] = '../lib/Airavata/';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'API/Airavata.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'Model/Workspace/Experiment/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'API/Error/Types.php';
-
-use Airavata\Model\Workspace\Experiment\ComputationalResourceScheduling;
-use Airavata\Model\Workspace\Experiment\DataObjectType;
-use Airavata\Model\Workspace\Experiment\UserConfigurationData;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-use Airavata\Model\Workspace\Experiment\Experiment;
-
-$transport = new TSocket('gw111.iu.xsede.org', 8930);
-$protocol = new TBinaryProtocol($transport);
-
-$airavataclient = new AiravataClient($protocol);
-$transport->open();
-
-echo "Airavata Server Version is: " . $airavataclient->GetAPIVersion();
-
-echo "<br><br>"."Creating New Experiment.... "."<br>";
-
-//Create a Experiment
-$experiment = new Experiment();
-$experiment->name = "PHPTest";
-$experiment->description = "Testingfromphp";
-$experiment->userName = "admin";
-$experiment->projectID = "project1";
-$experiment->applicationId = "US3AppTrestles";
-
-$experimentInputs = new DataObjectType();
-$experimentInputs->key = "input";
-$experimentInputs->value = "file:///home/airavata/input/hpcinput.tar";
-$experiment->experimentInputs = array($experimentInputs);
-
-$scheduling = new ComputationalResourceScheduling();
-$scheduling->resourceHostId = "gsissh-trestles";
-
-$userConfigData = new UserConfigurationData();
-$userConfigData->computationalResourceScheduling = $scheduling;
-$userConfigData->overrideManualScheduledParams = False;
-$userConfigData->airavataAutoSchedule = False;
-$experiment->userConfigurationData = $userConfigData;
-
-try {
-
- $expId = $airavataclient->createExperiment($experiment);
- echo "Experiment Id created is: " . $expId;
-
- echo "<br><br>"."Launching Experiment.... "."<br>";
- $airavataclient->launchExperiment($expId, "airavataToken");
- echo "....Launched Experiment ".$expId."<br>";
-
- echo "<br><br>"."Checking Experiment Status.... "."<br>";
- $experimentStatus = $airavataclient->getExperimentStatus($expId);
- echo "Experiment Status: "."<br>";
- echo "State: ".$experimentStatus->ExperimentState ." ".
- "Time of last state change:". $experimentStatus->timeOfStateChange;
-
- echo "<br><br>"."Checking Job Status.... "."<br>";
- $jobStatus = $airavataclient->getJobStatuses($expId);
- echo "Job Status: "."<br>";
- echo "State: "." ".
- "Time of last state change:";
-
-} catch (TException $texp) {
- print 'Exception: ' . $texp->getMessage()."\n";
-} catch (AiravataSystemException $ase) {
- print 'Airavata System Exception: ' . $ase->getMessage()."\n";
-}
-$transport->close();
-
-?>
-