You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2014/07/01 00:57:28 UTC

[49/50] [abbrv] git commit: removing conflicting license

removing conflicting license


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

Branch: refs/heads/master
Commit: 9800cd399dd20e7646e1bb8c024150cdefbe73e8
Parents: 0aec0da
Author: Suresh Marru <sm...@apache.org>
Authored: Mon Jun 30 18:54:11 2014 -0400
Committer: Suresh Marru <sm...@apache.org>
Committed: Mon Jun 30 18:54:11 2014 -0400

----------------------------------------------------------------------
 LICENSE                                         |  201 -
 README.md                                       |   10 -
 client-samples/GetAPIVersion.php                |   58 -
 client-samples/README-PHP-CLI-Examples.txt      |   20 -
 client-samples/add-compute-resources.php        |   78 -
 client-samples/airavata-client-api-tester.php   |  233 -
 client-samples/airavata-client-properties.ini   |   17 -
 client-samples/cloneExperiment.php              |  156 -
 client-samples/createExperiment.php             |  162 -
 client-samples/createProject.php                |   93 -
 client-samples/getAllExperimentsInProject.php   |   82 -
 client-samples/getAllUserExperiments.php        |   89 -
 client-samples/getAllUserProjects.php           |   83 -
 client-samples/getExperiment.php                |  110 -
 client-samples/getExperimentOutputs.php         |  116 -
 client-samples/getExperimentStatus.php          |  100 -
 client-samples/launchExperiment.php             |   86 -
 client-samples/list-application-interfaces.php  |   76 -
 client-samples/list-compute-resources.php       |  101 -
 .../search_experiments_by_application.php       |   82 -
 .../search_experiments_by_description.php       |   82 -
 client-samples/search_experiments_by_name.php   |   82 -
 client-samples/terminateExperiment.php          |  104 -
 client-samples/updateExperiment.php             |  158 -
 client-samples/updateProject.php                |   78 -
 lib/Airavata/API/Airavata.php                   | 6840 ------------------
 .../API/AppCatalog/ApplicationCatalogAPI.php    | 6165 ----------------
 lib/Airavata/API/AppCatalog/Types.php           |   22 -
 lib/Airavata/API/Error/Types.php                |  872 ---
 lib/Airavata/API/Types.php                      |   22 -
 lib/Airavata/Model/AppCatalog/Types.php         | 1636 -----
 lib/Airavata/Model/Types.php                    |   20 -
 .../Model/Workspace/Experiment/Types.php        | 4172 -----------
 lib/Airavata/Model/Workspace/Types.php          |  568 --
 lib/AiravataClientFactory.php                   |   45 -
 lib/Thrift/Base/TBase.php                       |  367 -
 lib/Thrift/ClassLoader/ThriftClassLoader.php    |  223 -
 lib/Thrift/Exception/TApplicationException.php  |   72 -
 lib/Thrift/Exception/TException.php             |  369 -
 lib/Thrift/Exception/TProtocolException.php     |   48 -
 lib/Thrift/Exception/TTransportException.php    |   41 -
 lib/Thrift/Factory/TBinaryProtocolFactory.php   |   43 -
 lib/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 -
 lib/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 -
 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 -
 lib/Thrift/Type/TType.php                       |   46 -
 lib/Thrift/autoload.php                         |   51 -
 78 files changed, 29594 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index ad410e1..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
-Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "{}"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright {yyyy} {name of copyright owner}
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
deleted file mode 100644
index 27bdd0e..0000000
--- a/README.md
+++ /dev/null
@@ -1,10 +0,0 @@
-Airavata-PHP-Client-Samples
-===========================
-
-Client code to exercise the Airavata API
-
-This is a clone of the 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.

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/GetAPIVersion.php
----------------------------------------------------------------------
diff --git a/client-samples/GetAPIVersion.php b/client-samples/GetAPIVersion.php
deleted file mode 100644
index 8d840f0..0000000
--- a/client-samples/GetAPIVersion.php
+++ /dev/null
@@ -1,58 +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\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\Client\AiravataClientFactory;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-try
-{
-    $version = $airavataclient->getAPIVersion();
-}
-catch (TException $texp)
-{
-    print 'Exception: ' . $texp->getMessage()."\n";
-}
-
-
-echo 'Airavata server version is ' . $version;
-
-
-$transport->close();
-
-?>
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/README-PHP-CLI-Examples.txt
----------------------------------------------------------------------
diff --git a/client-samples/README-PHP-CLI-Examples.txt b/client-samples/README-PHP-CLI-Examples.txt
deleted file mode 100644
index 8684750..0000000
--- a/client-samples/README-PHP-CLI-Examples.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-This directory contains files that can be used to test the Apache Airavata client API using PHP command-line tools.  You will need PHP installed on your test environment.  To run a command from a terminal shell prompt, use, for example, 
-        [prompt%> php createProject.php your-name
-
-You can modify PHP files using any text editor.
-
-Run the commands in the following order for your first test.
-1. GetAPIVersion.php (a sanity check)
-2. createProject.php
-3. updateProject.php
-4. getAllUserProjects.php
-5. createExperiment.php
-6. getExperiment.php
-7. updateExperiment.php
-8. cloneExperiment.php
-9. getAllExperimentsInProject.php
-10. getAllUserExperiments.php
-11. launchExperiment.php
-12. getExperimentStatus.php
-13. getExperimentOutputs.php
-14. terminateExperiment.php

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/add-compute-resources.php
----------------------------------------------------------------------
diff --git a/client-samples/add-compute-resources.php b/client-samples/add-compute-resources.php
deleted file mode 100644
index 0413903..0000000
--- a/client-samples/add-compute-resources.php
+++ /dev/null
@@ -1,78 +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'] . 'API/AppCatalog/ApplicationCatalogAPI.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'Model/Workspace/Experiment/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'Model/AppCatalog/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 Airavata\Model\AppCatalog\ComputeResourceDescription;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-use Airavata\API\AppCatalog\ApplicationCatalogAPIClient;
-use Airavata\Model\Workspace\Experiment\Experiment;
-use Airavata\Model\AppCatalog\JobSubmissionProtocol;
-use Airavata\Model\AppCatalog\DataMovementProtocol;
-use Airavata\Model\AppCatalog\GSISSHJobSubmission;
-use Airavata\Model\AppCatalog\ResourceJobManager;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['APP_CATALOG_SERVER'], $airavataconfig['APP_CATALOG_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-
-$airavataclient = new ApplicationCatalogAPIClient($protocol);
-$transport->open();
-
-echo "Airavata Server Version is: " . $airavataclient->getAPIVersion() . "\n";
-
-echo "Add Compute Resources.... "."\n";
-
-$id_list = $airavataclient->listComputeResourceDescriptions();
-$compute_resource = new ComputeResourceDescription();
-$compute_resource->hostName="test-stampede-host"."-".time();
-$compute_resource->hostAliases=array("stampede");
-$compute_resource->ipAddresses=array("stampede.tacc.xsede.org");
-$compute_resource->isEmpty=false;
-$compute_resource->scratchLocation="/home1/01437/ogce";
-$compute_resource->jobSubmissionProtocols=array();
-$compute_resource->dataMovementProtocols=array();
-
-echo "Adding ".$compute_resource->hostName."...";
-$compute_resource_id=$airavataclient->addComputeResourceDescription($compute_resource);
-echo "done [saved in the catalog as ".$compute_resource_id."]\n";
-
-$gsissh_protoco_data=new GSISSHJobSubmission();
-$gsissh_protoco_data->resourceJobManager=ResourceJobManager::SLURM;
-$gsissh_protoco_data->installedPath="/usr/bin/";
-$gsissh_protoco_data->sshPort=2222;
-$gsissh_protoco_data->monitorMode="push";
-
-echo "Adding GSISSH protocol data to ".$compute_resource_id."...";
-$airavataclient->addGSISSHJobSubmissionProtocol($compute_resource_id, $gsissh_protoco_data);
-echo "done\n";
-$transport->close();
-?>

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/airavata-client-api-tester.php
----------------------------------------------------------------------
diff --git a/client-samples/airavata-client-api-tester.php b/client-samples/airavata-client-api-tester.php
deleted file mode 100755
index 06c0429..0000000
--- a/client-samples/airavata-client-api-tester.php
+++ /dev/null
@@ -1,233 +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/TBufferedTransport.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'] . 'Exception/TTransportException.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/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'Model/Workspace/Experiment/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'API/Error/Types.php';
-
-require_once '../lib/AiravataClientFactory.php';
-
-use Airavata\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\API\Error\ExperimentNotFoundException;
-use Airavata\Client\AiravataClientFactory;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-
-use Airavata\Model\Workspace\Project;
-use Airavata\Model\Workspace\Experiment\Experiment;
-use Airavata\Model\Workspace\Experiment\DataObjectType;
-use Airavata\Model\Workspace\Experiment\UserConfigurationData;
-use Airavata\Model\Workspace\Experiment\ComputationalResourceScheduling;
-use Airavata\Model\Workspace\Experiment\DataType;
-use Airavata\Model\Workspace\Experiment\ExperimentState;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-/* this is the same as the factory */
-/* - Temporarity overriding to connect to test server.
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-*/
-$transport = new TSocket('gw127.iu.xsede.org', 8930);
-$transport->setRecvTimeout(20000);
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-try
-{
-    if ($argc != 2)
-    {
-        echo 'php airavata-client-api-tester.php <username>';
-    }
-    else
-    {
-
-        /* ComputationalResourceScheduling data for Trestles*/
-        $cmRST = new ComputationalResourceScheduling();
-        $cmRST->resourceHostId = "trestles.sdsc.edu";
-        $cmRST->ComputationalProjectAccount = "sds128";
-        $cmRST->totalCPUCount = 1;
-        $cmRST->nodeCount = 1;
-        $cmRST->numberOfThreads = 0;
-        $cmRST->queueName = "normal";
-        $cmRST->wallTimeLimit = 15;
-        $cmRST->jobStartTime = 0;
-        $cmRST->totalPhysicalMemory = 0;
-
-        /* ComputationalResourceScheduling data for Stampede */
-        $cmRSS = new ComputationalResourceScheduling();
-        $cmRSS->resourceHostId = "stampede.tacc.xsede.org";
-        $cmRSS->ComputationalProjectAccount = "TG-STA110014S";
-        $cmRSS->totalCPUCount = 1;
-        $cmRSS->nodeCount = 1;
-        $cmRSS->numberOfThreads = 0;
-        $cmRSS->queueName = "normal";
-        $cmRSS->wallTimeLimit = 15;
-        $cmRSS->jobStartTime = 0;
-        $cmRSS->totalPhysicalMemory = 0;
-
-        /* UserConfigurationData using either Trestles or Stampede*/
-        //$cmRS = $cmRSS;
-        $cmRS = $cmRST;
-        $userConfigurationData = new UserConfigurationData();
-        $userConfigurationData->airavataAutoSchedule = 0;
-        $userConfigurationData->overrideManualScheduledParams = 0;
-        $userConfigurationData->computationalResourceScheduling = $cmRS;
-        //var_dump($cmRS);
-        //var_dump($userConfigurationData);
-
-        /*Application ID for Trestles or Stamepede */
-        $appId_trestles = "SimpleEcho2";
-        $appId_stampede = "SimpleEcho3";
-        //$appId = $appId_stampede;
-        $appId = $appId_trestles;
-
-        /* Experiment input and output data. */
-        $input = new DataObjectType();
-        $input->key = "echo_input";
-        $input->value = "echo_output=Hello World";
-        $input->type = DataType::STRING;
-        $exInputs = array($input);
-
-        $output = new DataObjectType();
-        $output->key = "echo_output";
-        $output->value = "";
-        $output->type = DataType::STRING;
-        $exOutputs = array($output);
-
-	
-        /* Simple workflow test. */
-        $user = $argv[1];
-        
-        /* Create Project */
-        $project = new Project();
-	$project->owner = $user;
-	$project->name = "LoadTesterProject";
-  	$projId = $airavataclient->createProject($project); 
-	echo "$user created project $projId. \n";
-
-        /* Create Experiment */
-        $experiment = new Experiment();
-        $experiment->projectID = $projId;
-        $experiment->userName = $user;
-        $experiment->name = "LoadTesterExperiment_".time();
-        $experiment->applicationId = $appId;
-        $experiment->userConfigurationData = $userConfigurationData;
-        $experiment->experimentInputs = $exInputs;
-        $experiment->experimentOutputs = $exOutputs;
-        $expId = $airavataclient->createExperiment($experiment);
-	echo "$user created experiment $expId. \n";
-        //var_dump($experiment);
-
-        /* Get whole project */
-	$uproj = $airavataclient->getProject($projId);
- 	echo "$user $projId detail follows: \n";
-	var_dump($uproj);
-
-        /* Update Project */
-	$uproj->description = "Updated project description: ".time();
-	$airavataclient->updateProject($projId, $uproj);
-	echo "$user updated project $projId. \n";
-
-        /* Get whole experiment */
-	$uexp = $airavataclient->getExperiment($expId);
-        echo "$user experiment $expId detail follows: \n";
-        var_dump($uexp);
-
-	/* Update Experiment */
-	$uexp->description = "Updated experiment description: ".time();
-	$airavataclient->updateExperiment($expId, $uexp);
-	echo "$user updated experiment $expId. \n";
-
-	/* Clone Experiment */
-	$clone_expId = $airavataclient->cloneExperiment($expId, "CloneLoadTesterExperiment_".time());
-	echo "$user cloned experiment $expId as $clone_expId. \n";
-
-	/* Update Experiment Configuration */
-        $update_userConfigurationData = new UserConfigurationData();
-        $update_userConfigurationData->airavataAutoSchedule = 0;
-        $update_userConfigurationData->overrideManualScheduledParams = 0;
-        $update_userConfigurationData->computationalResourceScheduling = $cmRSS; 
-	$airavataclient->updateExperimentConfiguration($expId, $update_userConfigurationData);
-	echo "$user updated user configuration data for experiment $expId. \n";
-
-	/* Update Resource Scheduleing */
-	//$airavataclient->updateResourceScheduleing($expId, $cmRST);
-	//echo "$user updated resource scheduleing for experiment $expId. \n";
-
-	/* Validate experiment */
-	//$valid = $airavataclient->validateExperiment($expId);
-	//echo "$user experiment $expId validation is $valid. \n";
-
-        /* Launch Experiment */
-	//$airavataclient->launchExperiment($expId, 'airavataToken');
-	//echo "$user experiment $expId is launched.";
-
-	/* Get experiment status */ 
-	$experimentStatus = $airavataclient->getExperimentStatus($expId);
-        $experimentStatusString =  ExperimentState::$__names[$experimentStatus->experimentState];
-	echo "$user experiment $expId status is $experimentStatusString. \n";
-
-        /* Get additional information */
-        //$version = $airavataclient->GetAPIVersion();
-        //echo "$user Airavata Server Version is $version. \n"; 
-
-	$userProjects = $airavataclient->getAllUserProjects($user);
-        echo "$user total number of projects is " . sizeof($userProjects) . ". \n";
-
-	$userExperiments = $airavataclient->getAllUserExperiments($user);
-        echo "$user total number of experiments is " . sizeof($userExperiments) . ". \n";
-
-        //echo $projId;
-        $projectExperiments = $airavataclient->getAllExperimentsInProject($projId);
-        echo "$user number of experiments in $projId is " . sizeof($projectExperiments) . ". \n";	
-    }
-
-}
-catch (InvalidRequestException $ire)
-{
-    print 'InvalidRequestException: ' . $ire->getMessage()."\n";
-}
-catch (AiravataClientException $ace)
-{
-    print 'Airavata System Exception: ' . $ace->getMessage()."\n";
-}
-catch (AiravataSystemException $ase)
-{
-    print 'Airavata System Exception: ' . $ase->getMessage()."\n";
-}
-catch (ExperimentNotFoundException $enf)
-{
-    print 'Experiment Not Found Exception: ' . $enf->getMessage()."\n";
-}
-
-
-
-$transport->close();
-
-?>
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/airavata-client-properties.ini
----------------------------------------------------------------------
diff --git a/client-samples/airavata-client-properties.ini b/client-samples/airavata-client-properties.ini
deleted file mode 100644
index b7ad4d7..0000000
--- a/client-samples/airavata-client-properties.ini
+++ /dev/null
@@ -1,17 +0,0 @@
-; The is the configuration file with properties needed by Airavata Clients.
-;   Key properties specify location of Airavata Services, Ports and Such.
-
-; Host which runs the Airavata Server
-AIRAVATA_SERVER = "gw111.iu.xsede.org"
-
-; Airavata Server thrift port
-AIRAVATA_PORT = 8930
-
-; Time out value to give enough breathing room for client to get synchronous responses back
-AIRAVATA_TIMEOUT = 5000
-
-; Host which runs the Application Catalog Server
-APP_CATALOG_SERVER = "gw111.iu.xsede.org"
-
-; Application Catalog Server thrift port
-APP_CATALOG_PORT = 8931

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/cloneExperiment.php
----------------------------------------------------------------------
diff --git a/client-samples/cloneExperiment.php b/client-samples/cloneExperiment.php
deleted file mode 100644
index 42a39d7..0000000
--- a/client-samples/cloneExperiment.php
+++ /dev/null
@@ -1,156 +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/TBufferedTransport.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'] . 'Exception/TTransportException.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';
-
-require_once '../lib/AiravataClientFactory.php';
-
-use Airavata\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\ExperimentNotFoundException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\Client\AiravataClientFactory;
-use Airavata\Model\Workspace\Experiment\ExperimentState;
-use Thrift\Exception\TTransportException;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-
-//$expId = 'experiment2_8f9c0ccc-6392-47b3-bcde-f4e82557bc32';
-
-
-if ($argc != 2)
-{
-    echo 'php cloneExperiment.php <experiment_id>';
-}
-else
-{
-    $cloneId = clone_experiment($argv[1]);
-
-    $clone = get_experiment($cloneId);
-
-    var_dump($clone);
-
-    echo "Created clone with ID $clone->experimentID named $clone->name \n\n";
-}
-
-
-
-
-//var_dump($experiment);
-
-
-$transport->close();
-
-
-/**
- * Get the experiment with the given ID
- * @param $expId
- * @return null
- */
-function get_experiment($expId)
-{
-    global $airavataclient;
-
-    try
-    {
-        return $airavataclient->getExperiment($expId);
-    }
-    catch (InvalidRequestException $ire)
-    {
-        echo 'InvalidRequestException!<br><br>' . $ire->getMessage();
-    }
-    catch (ExperimentNotFoundException $enf)
-    {
-        echo 'ExperimentNotFoundException!<br><br>' . $enf->getMessage();
-    }
-    catch (AiravataClientException $ace)
-    {
-        echo 'AiravataClientException!<br><br>' . $ace->getMessage();
-    }
-    catch (AiravataSystemException $ase)
-    {
-        echo 'AiravataSystemException during get!<br><br>' . $ase->getMessage();
-    }
-    catch (TTransportException $tte)
-    {
-        echo 'TTransportException!<br><br>' . $tte->getMessage();
-    }
-    catch (\Exception $e)
-    {
-        echo 'Exception!<br><br>' . $e->getMessage();
-    }
-
-}
-
-/**
- * Clone the experiment with the given ID
- * @param $expId
- * @return null
- */
-function clone_experiment($expId)
-{
-    global $airavataclient;
-
-    try
-    {
-        $experiment = $airavataclient->getExperiment($expId);
-
-        return $airavataclient->cloneExperiment($expId, $experiment->name .= time());
-    }
-    catch (InvalidRequestException $ire)
-    {
-        echo 'InvalidRequestException!<br><br>' . $ire->getMessage();
-    }
-    catch (ExperimentNotFoundException $enf)
-    {
-        echo 'ExperimentNotFoundException!<br><br>' . $enf->getMessage();
-    }
-    catch (AiravataClientException $ace)
-    {
-        echo 'AiravataClientException!<br><br>' . $ace->getMessage();
-    }
-    catch (AiravataSystemException $ase)
-    {
-        echo 'AiravataSystemException during clone!<br><br>' . $ase->getMessage();
-    }
-    catch (TTransportException $tte)
-    {
-        echo 'TTransportException!<br><br>' . $tte->getMessage();
-    }
-}
-
-?>
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/createExperiment.php
----------------------------------------------------------------------
diff --git a/client-samples/createExperiment.php b/client-samples/createExperiment.php
deleted file mode 100755
index 3545a37..0000000
--- a/client-samples/createExperiment.php
+++ /dev/null
@@ -1,162 +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/TBufferedTransport.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'] . 'Exception/TTransportException.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/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'Model/Workspace/Experiment/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'API/Error/Types.php';
-
-require_once '../lib/AiravataClientFactory.php';
-
-use Airavata\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\Client\AiravataClientFactory;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-
-use Airavata\Model\Workspace\Project;
-use Airavata\Model\Workspace\Experiment\Experiment;
-use Airavata\Model\Workspace\Experiment\DataObjectType;
-use Airavata\Model\Workspace\Experiment\UserConfigurationData;
-use Airavata\Model\Workspace\Experiment\ComputationalResourceScheduling;
-use Airavata\Model\Workspace\Experiment\DataType;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-
-try
-{
-    if ($argc != 4)
-    {
-        echo 'php createExperiment.php <username> <experiment_name> <project_ID>';
-    }
-    else
-    {
-        /* ComputationalResourceScheduling data for Trestles*/
-        $cmRST = new ComputationalResourceScheduling();
-        $cmRST->resourceHostId = "trestles.sdsc.edu";
-        $cmRST->ComputationalProjectAccount = "sds128";
-        $cmRST->totalCPUCount = 1;
-        $cmRST->nodeCount = 1;
-        $cmRST->numberOfThreads = 0;
-        $cmRST->queueName = "normal";
-        $cmRST->wallTimeLimit = 15;
-        $cmRST->jobStartTime = 0;
-        $cmRST->totalPhysicalMemory = 0;
-
-        /* ComputationalResourceScheduling data for Stampede */
-        $cmRSS = new ComputationalResourceScheduling();
-        $cmRSS->resourceHostId = "stampede.tacc.xsede.org";
-        $cmRSS->ComputationalProjectAccount = "TG-STA110014S";
-        $cmRSS->totalCPUCount = 1;
-        $cmRSS->nodeCount = 1;
-        $cmRSS->numberOfThreads = 0;
-        $cmRSS->queueName = "normal";
-        $cmRSS->wallTimeLimit = 15;
-        $cmRSS->jobStartTime = 0;
-        $cmRSS->totalPhysicalMemory = 0;
-
-        /* UserConfigurationData using either Trestles or Stampede*/
-        //$cmRS = $cmRSS;
-        $cmRS = $cmRST;
-        $userConfigurationData = new UserConfigurationData();
-        $userConfigurationData->airavataAutoSchedule = 0;
-        $userConfigurationData->overrideManualScheduledParams = 0;
-        $userConfigurationData->computationalResourceScheduling = $cmRS;
-        //var_dump($cmRS);
-        //var_dump($userConfigurationData);
-
-        /*Application ID for Trestles or Stamepede */
-        $appId_trestles = "SimpleEcho2";
-        $appId_stampede = "SimpleEcho3";
-        //$appId = $appId_stampede;
-        $appId = $appId_trestles;
-
-        /* Experiment input and output data. */
-        $input = new DataObjectType();
-        $input->key = "echo_input";
-        $input->value = "echo_output=Hello World";
-        $input->type = DataType::STRING;
-        $exInputs = array($input);
-
-        $output = new DataObjectType();
-        $output->key = "echo_output";
-        $output->value = "";
-        $output->type = DataType::STRING;
-        $exOutputs = array($output);
-
-        /* Create Experiment: needs to update using unique project ID. */
-        $user = $argv[1];
-        $exp_name = $argv[2];
-        $proj = $argv[3];
-
-        $experiment = new Experiment();
-        $experiment->projectID = $proj;
-        $experiment->userName = $user;
-        $experiment->name = $exp_name;
-        $experiment->applicationId = $appId;
-        $experiment->userConfigurationData = $userConfigurationData;
-        $experiment->experimentInputs = $exInputs;
-        $experiment->experimentOutputs = $exOutputs;
-
-        $expId = $airavataclient->createExperiment($experiment);
-
-        if ($expId)
-        {
-            var_dump($experiment);
-            echo "Experiment $expId created! \n    ";
-        }
-        else
-        {
-            echo "Failed to create experiment. \n";
-        }
-    }
-
-
-}
-catch (InvalidRequestException $ire)
-{
-    print 'InvalidRequestException: ' . $ire->getMessage()."\n";
-}
-catch (AiravataClientException $ace)
-{
-    print 'Airavata System Exception: ' . $ace->getMessage()."\n";
-}
-catch (AiravataSystemException $ase)
-{
-    print 'Airavata System Exception: ' . $ase->getMessage()."\n";
-}
-
-
-$transport->close();
-
-?>
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/createProject.php
----------------------------------------------------------------------
diff --git a/client-samples/createProject.php b/client-samples/createProject.php
deleted file mode 100755
index 8a75b6f..0000000
--- a/client-samples/createProject.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/TBufferedTransport.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'] . 'Exception/TTransportException.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/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'Model/Workspace/Experiment/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'API/Error/Types.php';
-
-require_once '../lib/AiravataClientFactory.php';
-
-use Airavata\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\Client\AiravataClientFactory;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-use Airavata\Model\Workspace\Project;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-
-try
-{
-    if ($argc != 3)
-    {
-        echo 'php createProject.php <owner> <project_name>';
-    }
-    else
-    {
-        $project = new Project();
-        $project->owner = $argv[1];
-        $project->name = $argv[2];
-
-        $projId = $airavataclient->createProject($project);
-
-        if ($projId)
-        {
-            print "$projId";
-        }
-        else
-        {
-            echo 'Failed to create project.';
-        }
-    }
-}
-catch (InvalidRequestException $ire)
-{
-    print 'InvalidRequestException: ' . $ire->getMessage()."\n";
-}
-catch (AiravataClientException $ace)
-{
-    print 'Airavata System Exception: ' . $ace->getMessage()."\n";
-}
-catch (AiravataSystemException $ase)
-{
-    print 'Airavata System Exception: ' . $ase->getMessage()."\n";
-}
-
-
-
-
-
-$transport->close();
-
-?>
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/getAllExperimentsInProject.php
----------------------------------------------------------------------
diff --git a/client-samples/getAllExperimentsInProject.php b/client-samples/getAllExperimentsInProject.php
deleted file mode 100644
index 6b42ecc..0000000
--- a/client-samples/getAllExperimentsInProject.php
+++ /dev/null
@@ -1,82 +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/TBufferedTransport.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'] . 'Exception/TTransportException.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';
-
-require_once '../lib/AiravataClientFactory.php';
-
-use Airavata\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\Client\AiravataClientFactory;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-
-try
-{
-
-   if ($argc != 2) {
-		echo 'php getAllExperimentsInProject.php <project_ID>';
-	}
-
-	else {
-	    $projectExperiments = $airavataclient->getAllExperimentsInProject($argv[1]);
-   	  echo '# of project experiments = ' . sizeof($projectExperiments) . '         <br><br>';
-    	  var_dump($projectExperiments);
-   }
-
-
-}
-catch (InvalidRequestException $ire)
-{
-    print 'InvalidRequestException: ' . $ire->getMessage()."\n";
-}
-catch (AiravataClientException $ace)
-{
-    print 'Airavata System Exception: ' . $ace->getMessage()."\n";
-}
-catch (AiravataSystemException $ase)
-{
-    print 'Airavata System Exception: ' . $ase->getMessage()."\n";
-}
-
-
-
-
-
-$transport->close();
-
-?>
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/getAllUserExperiments.php
----------------------------------------------------------------------
diff --git a/client-samples/getAllUserExperiments.php b/client-samples/getAllUserExperiments.php
deleted file mode 100644
index 81e3685..0000000
--- a/client-samples/getAllUserExperiments.php
+++ /dev/null
@@ -1,89 +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/TBufferedTransport.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'] . 'Exception/TTransportException.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';
-
-require_once '../lib/AiravataClientFactory.php';
-
-use Airavata\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\Client\AiravataClientFactory;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-
-
-
-try
-{
-    if ($argc != 2)
-    {
-        echo 'php getAllUserExperiments.php <username>';
-    }
-    else
-    {
-        $userExperiments = $airavataclient->getAllUserExperiments($argv[1]);
-        echo '# of user experiments = ' . sizeof($userExperiments) . '     ';
-        var_dump($userExperiments);
-    }
-
-
-
-
-
-
-
-}
-catch (InvalidRequestException $ire)
-{
-    print 'InvalidRequestException: ' . $ire->getMessage()."\n";
-}
-catch (AiravataClientException $ace)
-{
-    print 'Airavata System Exception: ' . $ace->getMessage()."\n";
-}
-catch (AiravataSystemException $ase)
-{
-    print 'Airavata System Exception: ' . $ase->getMessage()."\n";
-}
-
-
-
-
-
-$transport->close();
-
-?>
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/getAllUserProjects.php
----------------------------------------------------------------------
diff --git a/client-samples/getAllUserProjects.php b/client-samples/getAllUserProjects.php
deleted file mode 100644
index 75d6dd4..0000000
--- a/client-samples/getAllUserProjects.php
+++ /dev/null
@@ -1,83 +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/TBufferedTransport.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'] . 'Exception/TTransportException.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/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'Model/Workspace/Experiment/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'API/Error/Types.php';
-
-require_once '../lib/AiravataClientFactory.php';
-
-use Airavata\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\Client\AiravataClientFactory;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-
-
-
-try
-{
-    if ($argc != 2)
-    {
-        echo 'php getAllUserProjects.php <user>';
-    }
-    else
-    {
-        $userProjects = $airavataclient->getAllUserProjects($argv[1]);
-        echo '# of user projects = ' . sizeof($userProjects) . '       ';
-        var_dump($userProjects);
-    }
-}
-catch (InvalidRequestException $ire)
-{
-    print 'InvalidRequestException: ' . $ire->getMessage()."\n";
-}
-catch (AiravataClientException $ace)
-{
-    print 'Airavata System Exception: ' . $ace->getMessage()."\n";
-}
-catch (AiravataSystemException $ase)
-{
-    print 'Airavata System Exception: ' . $ase->getMessage()."\n";
-}
-
-
-
-
-
-$transport->close();
-
-?>
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/getExperiment.php
----------------------------------------------------------------------
diff --git a/client-samples/getExperiment.php b/client-samples/getExperiment.php
deleted file mode 100644
index 48f84ea..0000000
--- a/client-samples/getExperiment.php
+++ /dev/null
@@ -1,110 +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/TBufferedTransport.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'] . 'Exception/TTransportException.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';
-
-require_once '../lib/AiravataClientFactory.php';
-
-use Airavata\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\ExperimentNotFoundException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\Client\AiravataClientFactory;
-use Airavata\Model\Workspace\Experiment\ExperimentState;
-use Thrift\Exception\TTransportException;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-
-if (count($argv) < 2) {
-    exit("Please provide an experimentID. \n");
-}
-
-$expId = $argv[1];
-
-
-$experiment = get_experiment($expId);
-
-var_dump($experiment);
-
-
-
-
-
-
-$transport->close();
-
-
-/**
- * Get the experiment with the given ID
- * @param $expId
- * @return null
- */
-function get_experiment($expId)
-{
-    global $airavataclient;
-
-    try
-    {
-        return $airavataclient->getExperiment($expId);
-    }
-    catch (InvalidRequestException $ire)
-    {
-        echo 'InvalidRequestException!<br><br>' . $ire->getMessage();
-    }
-    catch (ExperimentNotFoundException $enf)
-    {
-        echo 'ExperimentNotFoundException!<br><br>' . $enf->getMessage();
-    }
-    catch (AiravataClientException $ace)
-    {
-        echo 'AiravataClientException!<br><br>' . $ace->getMessage();
-    }
-    catch (AiravataSystemException $ase)
-    {
-        echo 'AiravataSystemException!<br><br>' . $ase->getMessage();
-    }
-    catch (TTransportException $tte)
-    {
-        echo 'TTransportException!<br><br>' . $tte->getMessage();
-    }
-    catch (\Exception $e)
-    {
-        echo 'Exception!<br><br>' . $e->getMessage();
-    }
-
-}
-
-?>
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/getExperimentOutputs.php
----------------------------------------------------------------------
diff --git a/client-samples/getExperimentOutputs.php b/client-samples/getExperimentOutputs.php
deleted file mode 100644
index 697c3a0..0000000
--- a/client-samples/getExperimentOutputs.php
+++ /dev/null
@@ -1,116 +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/TBufferedTransport.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'] . 'Exception/TTransportException.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';
-
-require_once '../lib/AiravataClientFactory.php';
-
-use Airavata\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\ExperimentNotFoundException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\Client\AiravataClientFactory;
-use Airavata\Model\Workspace\Experiment\ExperimentState;
-use Thrift\Exception\TTransportException;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-
-
-if ($argc != 2)
-{
-    exit("php getExperimentOutputs.php <experiment_id> \n");
-}
-
-$expId = $argv[1];
-
-$outputs = get_experiment_outputs($expId);
-
-foreach ($outputs as $output)
-{
-    echo "$output->type: $output->value      <br><br>";
-}
-
-var_dump($outputs);
-
-
-
-
-
-
-$transport->close();
-
-
-/**
- * Get the experiment with the given ID
- * @param $expId
- * @return null
- */
-function get_experiment_outputs($expId)
-{
-    global $airavataclient;
-
-    try
-    {
-        return $airavataclient->getExperimentOutputs($expId);
-    }
-    catch (InvalidRequestException $ire)
-    {
-        echo 'InvalidRequestException!<br><br>' . $ire->getMessage();
-    }
-    catch (ExperimentNotFoundException $enf)
-    {
-        echo 'ExperimentNotFoundException!<br><br>' . $enf->getMessage();
-    }
-    catch (AiravataClientException $ace)
-    {
-        echo 'AiravataClientException!<br><br>' . $ace->getMessage();
-    }
-    catch (AiravataSystemException $ase)
-    {
-        echo 'AiravataSystemException!<br><br>' . $ase->getMessage();
-    }
-    catch (TTransportException $tte)
-    {
-        echo 'TTransportException!<br><br>' . $tte->getMessage();
-    }
-    catch (\Exception $e)
-    {
-        echo 'Exception!<br><br>' . $e->getMessage();
-    }
-
-}
-
-?>
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/getExperimentStatus.php
----------------------------------------------------------------------
diff --git a/client-samples/getExperimentStatus.php b/client-samples/getExperimentStatus.php
deleted file mode 100644
index 77b7feb..0000000
--- a/client-samples/getExperimentStatus.php
+++ /dev/null
@@ -1,100 +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/TBufferedTransport.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'] . 'Exception/TTransportException.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';
-
-require_once '../lib/AiravataClientFactory.php';
-
-use Airavata\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\ExperimentNotFoundException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\Client\AiravataClientFactory;
-use Airavata\Model\Workspace\Experiment\ExperimentState;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-
-if (count($argv) < 2) {
-    exit("Please provide an experimentID. \n");
-}
-
-$expId = $argv[1];   
-
-$experimentStatusString = get_experiment_status($expId);
-echo "experiment status = " . $experimentStatusString . "       \n<br>";
-
-
-$transport->close();
-
-
-/**
- * Get a string containing the given experiment's status
- * @param $expId
- * @return mixed
- */
-function get_experiment_status($expId)
-{
-    global $airavataclient;
-
-    try
-    {
-        $experimentStatus = $airavataclient->getExperimentStatus($expId);
-    }
-    catch (InvalidRequestException $ire)
-    {
-        echo 'InvalidRequestException!<br><br>' . $ire->getMessage();
-    }
-    catch (ExperimentNotFoundException $enf)
-    {
-        echo 'ExperimentNotFoundException!<br><br>' . $enf->getMessage();
-    }
-    catch (AiravataClientException $ace)
-    {
-        echo 'AiravataClientException!<br><br>' . $ace->getMessage();
-    }
-    catch (AiravataSystemException $ase)
-    {
-        echo 'AiravataSystemException!<br><br>' . $ase->getMessage();
-    }
-    catch (\Exception $e)
-    {
-        echo 'Exception!<br><br>' . $e->getMessage();
-    }
-
-    return ExperimentState::$__names[$experimentStatus->experimentState];
-}
-
-?>
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/launchExperiment.php
----------------------------------------------------------------------
diff --git a/client-samples/launchExperiment.php b/client-samples/launchExperiment.php
deleted file mode 100755
index fecbf2f..0000000
--- a/client-samples/launchExperiment.php
+++ /dev/null
@@ -1,86 +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/TBufferedTransport.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'] . 'Exception/TTransportException.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/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'Model/Workspace/Experiment/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'API/Error/Types.php';
-
-require_once '../lib/AiravataClientFactory.php';
-
-use Airavata\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\ExperimentNotFoundException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\Client\AiravataClientFactory;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-
-use Airavata\Model\Workspace\Project;
-use Airavata\Model\Workspace\Experiment\Experiment;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-try
-{
-   if (count($argv) < 2) {
-	exit("Please provide an experimentID. \n");
-   }
-
-   $expId = $argv[1];	
-   $airavataclient->launchExperiment($expId, 'airavataToken');
-   echo "Experiment $expId is launched.";
-}
-catch (InvalidRequestException $ire)
-{
-    print 'InvalidRequestException: ' . $ire->getMessage()."\n";
-}
-catch (AiravataClientException $ace)
-{
-    print 'Airavata System Exception: ' . $ace->getMessage()."\n";
-}
-catch (AiravataSystemException $ase)
-{
-    print 'Airavata System Exception: ' . $ase->getMessage()."\n";
-}
-catch (ExperimentNotFoundException $enf)
-{
-    print 'Experiment Not Found Exception: ' . $enf->getMessage()."\n";
-}
-
-
-
-
-
-
-$transport->close();
-
-?>
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/list-application-interfaces.php
----------------------------------------------------------------------
diff --git a/client-samples/list-application-interfaces.php b/client-samples/list-application-interfaces.php
deleted file mode 100644
index 7d7c9ce..0000000
--- a/client-samples/list-application-interfaces.php
+++ /dev/null
@@ -1,76 +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'] . 'API/AppCatalog/ApplicationCatalogAPI.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'Model/Workspace/Experiment/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'Model/AppCatalog/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 Airavata\Model\ComputeResourceDescription;
-use Airavata\Model\ApplicationInterface;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-use Airavata\API\AppCatalog\ApplicationCatalogAPIClient;
-use Airavata\Model\Workspace\Experiment\Experiment;
-use Airavata\Model\AppCatalog\JobSubmissionProtocol;
-use Airavata\Model\AppCatalog\DataMovementProtocol;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['APP_CATALOG_SERVER'], $airavataconfig['APP_CATALOG_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-
-$airavataclient = new ApplicationCatalogAPIClient($protocol);
-$transport->open();
-
-echo "Airavata Server Version is: " . $airavataclient->getAPIVersion() . "\n";
-
-echo "Listing Application Interfaces.... "."\n";
-
-$id_list = $airavataclient->listApplicationInterfaceIds();
-
-foreach($id_list as $id){
-	echo "Application Interface Id : ".$id."\n";
-	$app_interface = $airavataclient->getApplicationInterface($id);
-	echo "\t"."Interface Data : " . $app_interface->applicationInterfaceData."\n";
-	echo "\t".count($app_interface->applicationDeployments)." Deployments"."\n";
-	foreach($app_interface->applicationDeployments as $deployment){
-		echo "\t\t"."Compute Resource : ".$deployment->computeResourceDescription->hostName."\n";
-		echo "\t\t\t"."Application Data".$deployment->applicationDescriptor->applicationDescriptorData."\n";
-	}
-}
-
-//$compute_resource = new \ComputeResourceDescription();
-//$compute_resource->hostName="localhost";
-//$compute_resource->hostAliases=array("localhost");
-//$compute_resource->ipAddresses=array("127.0.0.1");
-
-//Create a Experiment
-$transport->close();
-
-?>
-
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/list-compute-resources.php
----------------------------------------------------------------------
diff --git a/client-samples/list-compute-resources.php b/client-samples/list-compute-resources.php
deleted file mode 100644
index cc5c790..0000000
--- a/client-samples/list-compute-resources.php
+++ /dev/null
@@ -1,101 +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'] . 'API/AppCatalog/ApplicationCatalogAPI.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'Model/Workspace/Experiment/Types.php';
-require_once $GLOBALS['AIRAVATA_ROOT'] . 'Model/AppCatalog/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 Airavata\Model\ComputeResourceDescription;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-use Airavata\API\AppCatalog\ApplicationCatalogAPIClient;
-use Airavata\Model\Workspace\Experiment\Experiment;
-use Airavata\Model\AppCatalog\JobSubmissionProtocol;
-use Airavata\Model\AppCatalog\DataMovementProtocol;
-use Airavata\Model\AppCatalog\ResourceJobManager;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['APP_CATALOG_SERVER'], $airavataconfig['APP_CATALOG_PORT']);
-echo $airavataconfig['AIRAVATA_TIMEOUT']."\n";
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-
-$airavataclient = new ApplicationCatalogAPIClient($protocol);
-$transport->open();
-
-echo "Airavata Server Version is: " . $airavataclient->getAPIVersion() . "\n";
-
-echo "Listing Compute Resources.... "."\n";
-
-$id_list = $airavataclient->listComputeResourceDescriptions();
-
-foreach($id_list as $id){
-	echo "Compute Resource Id : ".$id."\n";
-	$compute_resource = $airavataclient->getComputeResourceDescription($id);
-	echo "\t"."Host name : " . $compute_resource->hostName ."\n";
-	echo "\t"."Aliases : " . implode(",",array_keys($compute_resource->hostAliases)) ."\n";
-	echo "\t"."Ip addresses : " . implode(",",array_keys($compute_resource->ipAddresses)) ."\n";
-	echo "\t".count($compute_resource->jobSubmissionProtocols)." Job Submission Protocols Supported"."\n";
-	foreach($compute_resource->jobSubmissionProtocols as $protocol_data_id => $protocol_type){
-		echo "\t\t".$protocol_data_id."[".JobSubmissionProtocol::$__names[$protocol_type]. "]"."\n";
-		switch ($protocol_type){
-			case JobSubmissionProtocol::GRAM:
-				$globus_data=$airavataclient->getGlobusJobSubmissionProtocol($protocol_data_id);
-				echo "\t\t\tGate Keeper Endpoint(s) : ".implode(",",($globus_data->globusGateKeeperEndPoint))."\n";
-				break;
-			case JobSubmissionProtocol::GSISSH:
-				$gsissh_data=$airavataclient->getGSISSHJobSubmissionProtocol($protocol_data_id);
-				echo "\t\t\tResource Job Manager : ".ResourceJobManager::$__names[$gsissh_data->resourceJobManager]."\n";
-				echo "\t\t\tInstalled Path : ".$gsissh_data->installedPath."\n";
-				echo "\t\t\tSSH port : ".$gsissh_data->sshPort."\n";
-				echo "\t\t\tMonitor Mode : ".$gsissh_data->monitorMode."\n";
-				break;
-		}
-	}
-	echo "\t".count($compute_resource->dataMovementProtocols)." Data Movement Protocols Supported"."\n";
-	foreach($compute_resource->dataMovementProtocols as $protocol_data_id => $protocol_type){
-		echo "\t\t".$protocol_data_id."[".DataMovementProtocol::$__names[$protocol_type] . "]"."\n";
-			switch ($protocol_type){
-			case DataMovementProtocol::GridFTP:
-				$gridftp_data=$airavataclient->getGridFTPDataMovementProtocol($protocol_data_id);
-				echo "\t\t\tGrid FTP Endpoint(s) : ".implode(",",($gridftp_data->gridFTPEndPoint))."\n";
-				break;
-		}
-	}
-}
-
-//$compute_resource = new \ComputeResourceDescription();
-//$compute_resource->hostName="localhost";
-//$compute_resource->hostAliases=array("localhost");
-//$compute_resource->ipAddresses=array("127.0.0.1");
-
-//Create a Experiment
-$transport->close();
-
-?>
-
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/search_experiments_by_application.php
----------------------------------------------------------------------
diff --git a/client-samples/search_experiments_by_application.php b/client-samples/search_experiments_by_application.php
deleted file mode 100644
index cd98694..0000000
--- a/client-samples/search_experiments_by_application.php
+++ /dev/null
@@ -1,82 +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/TBufferedTransport.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'] . 'Exception/TTransportException.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';
-
-require_once '../lib/AiravataClientFactory.php';
-
-use Airavata\API\Error\AiravataClientException;
-use Airavata\API\Error\AiravataSystemException;
-use Airavata\API\Error\InvalidRequestException;
-use Airavata\Client\AiravataClientFactory;
-use Thrift\Protocol\TBinaryProtocol;
-use Thrift\Transport\TBufferedTransport;
-use Thrift\Transport\TSocket;
-use Airavata\API\AiravataClient;
-
-$airavataconfig = parse_ini_file("airavata-client-properties.ini");
-
-$transport = new TSocket($airavataconfig['AIRAVATA_SERVER'], $airavataconfig['AIRAVATA_PORT']);
-$transport->setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']);
-
-$protocol = new TBinaryProtocol($transport);
-$transport->open();
-$airavataclient = new AiravataClient($protocol);
-
-
-try
-{
-
-    if ($argc != 3) {
-        echo 'php search_experiments_by_application.php <username> <project_ID>';
-    }
-
-    else {
-        $experiments = $airavataclient->searchExperimentsByApplication($argv[1], $argv[2]);
-        echo '# results = ' . sizeof($experiments) . '         <br><br>';
-        var_dump($experiments);
-    }
-
-
-}
-catch (InvalidRequestException $ire)
-{
-    print 'InvalidRequestException: ' . $ire->getMessage()."\n";
-}
-catch (AiravataClientException $ace)
-{
-    print 'Airavata System Exception: ' . $ace->getMessage()."\n";
-}
-catch (AiravataSystemException $ase)
-{
-    print 'Airavata System Exception: ' . $ase->getMessage()."\n";
-}
-
-
-
-
-
-$transport->close();
-
-?>
-