google/appengine/runtime/RemoteApiProxy.php
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.
\google\appengine\runtime\RemoteApiProxy
- Parent(s)
- \google\appengine\runtime\ApiProxyBase
Constants

OK
= 0
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::OK

RPC_FAILED
= 1
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::RPC_FAILED

CALL_NOT_FOUND
= 2
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::CALL_NOT_FOUND

ARGUMENT_ERROR
= 3
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::ARGUMENT_ERROR

DEADLINE_EXCEEDED
= 4
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::DEADLINE_EXCEEDED

CANCELLED
= 5
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::CANCELLED

APPLICATION_ERROR
= 6
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::APPLICATION_ERROR

OTHER_ERROR
= 7
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::OTHER_ERROR

OVER_QUOTA
= 8
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::OVER_QUOTA

REQUEST_TOO_LARGE
= 9
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::REQUEST_TOO_LARGE

CAPABILITY_DISABLED
= 10
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::CAPABILITY_DISABLED

FEATURE_DISABLED
= 11
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::FEATURE_DISABLED

RESPONSE_TOO_LARGE
= 12
- Inherited_from
- \google\appengine\runtime\ApiProxyBase::RESPONSE_TOO_LARGE
Methods

__construct
(string $apiHost, int $apiPort, string $requestId)
: void
Constructs an instance of RemoteApiProxy.
Name | Type | Description |
---|---|---|
$apiHost | string |
Host to use |
$apiPort | int |
Port to use |
$requestId | string |
ID of the request |

makeSyncCall
(string $package, string $call_name, string $request, string $response, double $deadline = null)
: void
Makes a synchronous RPC call.
Name | Type | Description |
---|---|---|
$package | string |
Package to call |
$call_name | string |
Specific RPC call to make |
$request | string |
Request proto, serialised to string |
$response | string |
Response proto string to populate |
$deadline | double |
Optional deadline for the RPC call |