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 88BC717824 for ; Wed, 18 Mar 2015 18:07:32 +0000 (UTC) Received: (qmail 72454 invoked by uid 500); 18 Mar 2015 18:07:32 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 72405 invoked by uid 500); 18 Mar 2015 18:07:32 -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 72393 invoked by uid 99); 18 Mar 2015 18:07:32 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2015 18:07:32 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 19E07E1876; Wed, 18 Mar 2015 18:07:32 +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: Wed, 18 Mar 2015 18:07:32 -0000 Message-Id: <4007b8b4ef2b4c738be551a6fb8df274@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/4] airavata-sandbox git commit: adding PHP client for multiplexing AIRAVATA-1632 Repository: airavata-sandbox Updated Branches: refs/heads/master e33bf99b0 -> 165a5113d http://git-wip-us.apache.org/repos/asf/airavata-sandbox/blob/165a5113/airavata-mock-multiplexed-api/mock-airavata-api-php-stubs/src/main/resources/lib/Thrift/Transport/TTransport.php ---------------------------------------------------------------------- diff --git a/airavata-mock-multiplexed-api/mock-airavata-api-php-stubs/src/main/resources/lib/Thrift/Transport/TTransport.php b/airavata-mock-multiplexed-api/mock-airavata-api-php-stubs/src/main/resources/lib/Thrift/Transport/TTransport.php new file mode 100755 index 0000000..99c39ff --- /dev/null +++ b/airavata-mock-multiplexed-api/mock-airavata-api-php-stubs/src/main/resources/lib/Thrift/Transport/TTransport.php @@ -0,0 +1,95 @@ +read($len); + + $data = ''; + $got = 0; + while (($got = TStringFuncFactory::create()->strlen($data)) < $len) { + $data .= $this->read($len - $got); + } + + return $data; + } + + /** + * Writes the given data out. + * + * @param string $buf The data to write + * @throws TTransportException if writing fails + */ + abstract public function write($buf); + + /** + * Flushes any pending data out of a buffer + * + * @throws TTransportException if a writing error occurs + */ + public function flush() {} +} http://git-wip-us.apache.org/repos/asf/airavata-sandbox/blob/165a5113/airavata-mock-multiplexed-api/mock-airavata-api-php-stubs/src/main/resources/lib/Thrift/Type/TConstant.php ---------------------------------------------------------------------- diff --git a/airavata-mock-multiplexed-api/mock-airavata-api-php-stubs/src/main/resources/lib/Thrift/Type/TConstant.php b/airavata-mock-multiplexed-api/mock-airavata-api-php-stubs/src/main/resources/lib/Thrift/Type/TConstant.php new file mode 100755 index 0000000..7c8eceb --- /dev/null +++ b/airavata-mock-multiplexed-api/mock-airavata-api-php-stubs/src/main/resources/lib/Thrift/Type/TConstant.php @@ -0,0 +1,50 @@ +mock-airavata-api-java-stubs mock-airavata-api-server mock-airavata-api-client + mock-airavata-api-php-stubs