Manages a VM Runtime process running inside of a docker container
def google.appengine.tools.devappserver2.vm_runtime_proxy.VMRuntimeProxy.__init__ |
( |
|
self, |
|
|
|
docker_client, |
|
|
|
runtime_config_getter, |
|
|
|
module_configuration |
|
) |
| |
Initializer for VMRuntimeProxy.
Args:
docker_client: docker.Client object to communicate with Docker daemon.
runtime_config_getter: A function that can be called without arguments
and returns the runtime_config_pb2.Config containing the configuration
for the runtime.
module_configuration: An application_configuration.ModuleConfiguration
instance respresenting the configuration of the module that owns the
runtime.
def google.appengine.tools.devappserver2.vm_runtime_proxy.VMRuntimeProxy.handle |
( |
|
self, |
|
|
|
environ, |
|
|
|
start_response, |
|
|
|
url_map, |
|
|
|
match, |
|
|
|
request_id, |
|
|
|
request_type |
|
) |
| |
Serves this request by forwarding it to application instance
via HttpProxy.
Args:
environ: An environ dict for the request as defined in PEP-333.
start_response: A function with semantics defined in PEP-333.
url_map: An appinfo.URLMap instance containing the configuration for the
handler matching this request.
match: A re.MatchObject containing the result of the matched URL pattern.
request_id: A unique string id associated with the request.
request_type: The type of the request. See instance.*_REQUEST module
constants.
Yields:
A sequence of strings containing the body of the HTTP response.
def google.appengine.tools.devappserver2.vm_runtime_proxy.VMRuntimeProxy.quit |
( |
|
self | ) |
|
Kills running container and removes it.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/devappserver2/vm_runtime_proxy.py