![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | get_restart_directories |
def | files_changed |
def | configuration_changed |
def | new_instance |
![]() | |
def | __init__ |
def | get_restart_directories |
def | files_changed |
def | configuration_changed |
def | new_instance |
Static Public Attributes | |
tuple | START_URL_MAP |
tuple | WARMUP_URL_MAP |
FILE_CHANGE_INSTANCE_RESTART_POLICY = instance.ALWAYS | |
![]() | |
START_URL_MAP = None | |
WARMUP_URL_MAP = None | |
SUPPORTS_INTERACTIVE_REQUESTS = False | |
FILE_CHANGE_INSTANCE_RESTART_POLICY = None | |
Additional Inherited Members | |
![]() | |
request_data | |
max_concurrent_requests | |
max_background_threads | |
A factory that creates new Go runtime Instances.
def google.appengine.tools.devappserver2.go_runtime.GoRuntimeInstanceFactory.__init__ | ( | self, | |
request_data, | |||
runtime_config_getter, | |||
module_configuration | |||
) |
Initializer for GoRuntimeInstanceFactory. Args: request_data: A wsgi_request_info.WSGIRequestInfo that will be provided with request information for use by API stubs. runtime_config_getter: A function that can be called without arguments and returns the runtime_config_pb2.RuntimeConfig 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.go_runtime.GoRuntimeInstanceFactory.configuration_changed | ( | self, | |
config_changes | |||
) |
Called when the configuration of the module has changed. Args: config_changes: A set containing the changes that occured. See the *_CHANGED constants in the application_configuration module.
def google.appengine.tools.devappserver2.go_runtime.GoRuntimeInstanceFactory.files_changed | ( | self | ) |
Called when a file relevant to the factory *might* have changed.
def google.appengine.tools.devappserver2.go_runtime.GoRuntimeInstanceFactory.get_restart_directories | ( | self | ) |
Returns a list of directories changes in which should trigger a restart. Returns: A list of src directory paths in the GOPATH. Changes (i.e. files added, deleted or modified) in these directories will trigger a restart of all instances created with this factory.
def google.appengine.tools.devappserver2.go_runtime.GoRuntimeInstanceFactory.new_instance | ( | self, | |
instance_id, | |||
expect_ready_request = False |
|||
) |
Create and return a new Instance. Args: instance_id: A string or integer representing the unique (per module) id of the instance. expect_ready_request: If True then the instance will be sent a special request (i.e. /_ah/warmup or /_ah/start) before it can handle external requests. Returns: The newly created instance.Instance.
|
static |
|
static |