Return-Path: X-Original-To: apmail-airavata-commits-archive@www.apache.org Delivered-To: apmail-airavata-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0A27A1156E for ; Mon, 30 Jun 2014 22:56:43 +0000 (UTC) Received: (qmail 20945 invoked by uid 500); 30 Jun 2014 22:56:42 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 20856 invoked by uid 500); 30 Jun 2014 22:56:42 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 18793 invoked by uid 99); 30 Jun 2014 22:56:41 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2014 22:56:41 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id AF680990388; Mon, 30 Jun 2014 22:56:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: smarru@apache.org To: commits@airavata.apache.org Date: Mon, 30 Jun 2014 22:57:27 -0000 Message-Id: <23da21ca80234e93b9c72ba108e80e51@git.apache.org> In-Reply-To: <55eeda5581b6463eafd88ea7e43a4f12@git.apache.org> References: <55eeda5581b6463eafd88ea7e43a4f12@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [48/50] [abbrv] removing conflicting license http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/search_experiments_by_description.php ---------------------------------------------------------------------- diff --git a/client-samples/search_experiments_by_description.php b/client-samples/search_experiments_by_description.php deleted file mode 100644 index 8243c0b..0000000 --- a/client-samples/search_experiments_by_description.php +++ /dev/null @@ -1,82 +0,0 @@ -setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']); - -$protocol = new TBinaryProtocol($transport); -$transport->open(); -$airavataclient = new AiravataClient($protocol); - - -try -{ - - if ($argc != 3) { - echo 'php search_experiments_by_description.php '; - } - - else { - $experiments = $airavataclient->searchExperimentsByDesc($argv[1], $argv[2]); - echo '# results = ' . sizeof($experiments) . '

'; - 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(); - -?> - http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/search_experiments_by_name.php ---------------------------------------------------------------------- diff --git a/client-samples/search_experiments_by_name.php b/client-samples/search_experiments_by_name.php deleted file mode 100644 index 4a51a15..0000000 --- a/client-samples/search_experiments_by_name.php +++ /dev/null @@ -1,82 +0,0 @@ -setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']); - -$protocol = new TBinaryProtocol($transport); -$transport->open(); -$airavataclient = new AiravataClient($protocol); - - -try -{ - - if ($argc != 3) { - echo 'php search_experiments_by_name.php '; - } - - else { - $experiments = $airavataclient->searchExperimentsByName($argv[1], $argv[2]); - echo '# results = ' . sizeof($experiments) . '

'; - 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(); - -?> - http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/terminateExperiment.php ---------------------------------------------------------------------- diff --git a/client-samples/terminateExperiment.php b/client-samples/terminateExperiment.php deleted file mode 100644 index 6eadb4c..0000000 --- a/client-samples/terminateExperiment.php +++ /dev/null @@ -1,104 +0,0 @@ -setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']); - -$protocol = new TBinaryProtocol($transport); -$transport->open(); -$airavataclient = new AiravataClient($protocol); - - -if ($argc != 2) -{ - echo 'php terminateExperiment.php '; -} -else -{ - terminate_experiment($argv[1]); - - echo 'If there are no exceptions, assume the experiment terminated successfully'; -} - - -$transport->close(); - - -/** - * End the experiment with the given ID - * @param $expId - */ -function terminate_experiment($expId) -{ - global $airavataclient; - - try - { - $airavataclient->terminateExperiment($expId); - } - catch (InvalidRequestException $ire) - { - echo 'InvalidRequestException!\n\n' . $ire->getMessage(); - } - catch (ExperimentNotFoundException $enf) - { - echo 'ExperimentNotFoundException!\n\n' . $enf->getMessage(); - } - catch (AiravataClientException $ace) - { - echo 'AiravataClientException!\n\n' . $ace->getMessage(); - } - catch (AiravataSystemException $ase) - { - echo 'AiravataSystemException!\n\n' . $ase->getMessage(); - } - catch (TTransportException $tte) - { - echo 'TTransportException!\n\n' . $tte->getMessage(); - } - catch (\Exception $e) - { - echo 'Exception!\n\n' . $e->getMessage(); - } -} - -?> - http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/updateExperiment.php ---------------------------------------------------------------------- diff --git a/client-samples/updateExperiment.php b/client-samples/updateExperiment.php deleted file mode 100644 index a15e3a4..0000000 --- a/client-samples/updateExperiment.php +++ /dev/null @@ -1,158 +0,0 @@ -setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']); - -$protocol = new TBinaryProtocol($transport); -$transport->open(); -$airavataclient = new AiravataClient($protocol); - - - - -if ($argc != 2) -{ - echo 'php updateExperiment.php '; -} -else -{ - update_experiment($argv[1]); -} - - - - - - - - - - -$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!

' . $ire->getMessage(); - } - catch (ExperimentNotFoundException $enf) - { - echo 'ExperimentNotFoundException!

' . $enf->getMessage(); - } - catch (AiravataClientException $ace) - { - echo 'AiravataClientException!

' . $ace->getMessage(); - } - catch (AiravataSystemException $ase) - { - echo 'AiravataSystemException during get!

' . $ase->getMessage(); - } - catch (TTransportException $tte) - { - echo 'TTransportException!

' . $tte->getMessage(); - } - catch (\Exception $e) - { - echo 'Exception!

' . $e->getMessage(); - } - -} - -/** - * Update the experiment with the given ID - * @param $expId - * @return null - */ -function update_experiment($expId) -{ - global $airavataclient; - - try - { - //create new experiment to receive the clone - $experiment = $airavataclient->getExperiment($expId); - $experiment->name .= time(); - - $airavataclient->updateExperiment($expId, $experiment); - - $updatedExperiment = $airavataclient->getExperiment($expId); - - echo "Experiment $experiment->name updated:\n\n"; - var_dump($updatedExperiment); - } - catch (InvalidRequestException $ire) - { - echo 'InvalidRequestException!

' . $ire->getMessage(); - } - catch (ExperimentNotFoundException $enf) - { - echo 'ExperimentNotFoundException!

' . $enf->getMessage(); - } - catch (AiravataClientException $ace) - { - echo 'AiravataClientException!

' . $ace->getMessage(); - } - catch (AiravataSystemException $ase) - { - echo 'AiravataSystemException during update!

' . $ase->getMessage(); - } - catch (TTransportException $tte) - { - echo 'TTransportException!

' . $tte->getMessage(); - } -} - -?> - http://git-wip-us.apache.org/repos/asf/airavata/blob/9800cd39/client-samples/updateProject.php ---------------------------------------------------------------------- diff --git a/client-samples/updateProject.php b/client-samples/updateProject.php deleted file mode 100644 index 75935e1..0000000 --- a/client-samples/updateProject.php +++ /dev/null @@ -1,78 +0,0 @@ -setRecvTimeout($airavataconfig['AIRAVATA_TIMEOUT']); - -$protocol = new TBinaryProtocol($transport); -$transport->open(); -$airavataclient = new AiravataClient($protocol); - - -try -{ - if($argc != 3) - { - echo 'php updateProject.php '; - } - else - { - $project=$airavataclient->getProject($argv[1]); - $project->description = $argv[2]; - $airavataclient->updateProject($argv[1], $project); - echo 'Project '.$argv[1] . ' succesfully modified.'; - } -} - -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(); - -?> -