App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.tools.devappserver2.module.ManualScalingModule Class Reference
Inheritance diagram for google.appengine.tools.devappserver2.module.ManualScalingModule:
google.appengine.tools.devappserver2.module.Module google.appengine.tools.devappserver2.dispatcher_test.ManualScalingModuleFacade google.appengine.tools.devappserver2.module_test.ManualScalingModuleFacade

Public Member Functions

def __init__
 
def start
 
def quit
 
def get_instance_port
 
def instances
 
def get_num_instances
 
def set_num_instances
 
def suspend
 
def resume
 
def restart
 
def get_instance
 
def __call__
 
def supports_individually_addressable_instances
 
- Public Member Functions inherited from google.appengine.tools.devappserver2.module.Module
def __init__
 
def name
 
def ready
 
def balanced_port
 
def host
 
def balanced_address
 
def max_instance_concurrent_requests
 
def module_configuration
 
def supports_interactive_commands
 
def set_num_instances
 
def get_num_instances
 
def suspend
 
def resume
 
def get_instance_address
 
def get_instance_port
 
def get_instance
 
def supports_individually_addressable_instances
 
def create_interactive_command_module
 
def build_request_environ
 

Additional Inherited Members

- Static Public Member Functions inherited from google.appengine.tools.devappserver2.module.Module
def generate_request_log_id
 
def generate_request_id_hash
 

Detailed Description

A pool of instances that is manually-scaled.

Constructor & Destructor Documentation

def google.appengine.tools.devappserver2.module.ManualScalingModule.__init__ (   self,
  module_configuration,
  host,
  balanced_port,
  api_host,
  api_port,
  auth_domain,
  runtime_stderr_loglevel,
  php_config,
  python_config,
  cloud_sql_config,
  vm_config,
  default_version_port,
  port_registry,
  request_data,
  dispatcher,
  max_instances,
  use_mtime_file_watcher,
  automatic_restarts,
  allow_skipped_files,
  threadsafe_override 
)
Initializer for ManualScalingModule.

Args:
  module_configuration: An application_configuration.ModuleConfiguration
  instance storing the configuration data for a module.
  host: A string containing the host that any HTTP servers should bind to
  e.g. "localhost".
  balanced_port: An int specifying the port where the balanced module for
  the pool should listen.
  api_host: The host that APIServer listens for RPC requests on.
  api_port: The port that APIServer listens for RPC requests on.
  auth_domain: A string containing the auth domain to set in the environment
  variables.
  runtime_stderr_loglevel: An int reprenting the minimum logging level at
  which runtime log messages should be written to stderr. See
  devappserver2.py for possible values.
  php_config: A runtime_config_pb2.PhpConfig instances containing PHP
  runtime-specific configuration. If None then defaults are used.
  python_config: A runtime_config_pb2.PythonConfig instance containing
  Python runtime-specific configuration. If None then defaults are
  used.
  cloud_sql_config: A runtime_config_pb2.CloudSQL instance containing the
  required configuration for local Google Cloud SQL development. If None
  then Cloud SQL will not be available.
  vm_config: A runtime_config_pb2.VMConfig instance containing
  VM runtime-specific configuration. If None all docker-related stuff
  is disabled.
  default_version_port: An int containing the port of the default version.
  port_registry: A dispatcher.PortRegistry used to provide the Dispatcher
  with a mapping of port to Module and Instance.
  request_data: A wsgi_request_info.WSGIRequestInfo that will be provided
  with request information for use by API stubs.
  dispatcher: A Dispatcher instance that can be used to make HTTP requests.
  max_instances: The maximum number of instances to create for this module.
  If None then there is no limit on the number of created instances.
  use_mtime_file_watcher: A bool containing whether to use mtime polling to
  monitor file changes even if other options are available on the
  current platform.
  automatic_restarts: If True then instances will be restarted when a
  file or configuration change that effects them is detected.
  allow_skipped_files: If True then all files in the application's directory
  are readable, even if they appear in a static handler or "skip_files"
  directive.
  threadsafe_override: If not None, ignore the YAML file value of threadsafe
  and use this value instead.

Member Function Documentation

def google.appengine.tools.devappserver2.module.ManualScalingModule.get_instance (   self,
  instance_id 
)
Returns the instance with the provided instance ID.
def google.appengine.tools.devappserver2.module.ManualScalingModule.get_instance_port (   self,
  instance_id 
)
Returns the port of the HTTP server for an instance.
def google.appengine.tools.devappserver2.module.ManualScalingModule.instances (   self)
A set of all the instances currently in the Module.
def google.appengine.tools.devappserver2.module.ManualScalingModule.quit (   self)
Stops the Module.
def google.appengine.tools.devappserver2.module.ManualScalingModule.restart (   self)
Restarts the module, replacing all running instances.
def google.appengine.tools.devappserver2.module.ManualScalingModule.resume (   self)
Resumes serving for this module.
def google.appengine.tools.devappserver2.module.ManualScalingModule.start (   self)
Start background management of the Module.
def google.appengine.tools.devappserver2.module.ManualScalingModule.suspend (   self)
Suspends serving for this module, quitting all running instances.

The documentation for this class was generated from the following file: