App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Static Public Member Functions | List of all members
google.appengine.ext.mapreduce.handlers.ControllerCallbackHandler Class Reference
Inheritance diagram for google.appengine.ext.mapreduce.handlers.ControllerCallbackHandler:
google.appengine.ext.mapreduce.base_handler.HugeTaskHandler google.appengine.ext.mapreduce.base_handler.TaskQueueHandler google.appengine.ext.webapp._webapp25.RequestHandler

Public Member Functions

def __init__
 
def handle
 
def serial_id
 
def reschedule
 
- Public Member Functions inherited from google.appengine.ext.mapreduce.base_handler.HugeTaskHandler
def __init__
 
- Public Member Functions inherited from google.appengine.ext.mapreduce.base_handler.TaskQueueHandler
def __init__
 
def initialize
 
def post
 
def handle
 
def task_retry_count
 
def retry_task
 
- Public Member Functions inherited from google.appengine.ext.webapp._webapp25.RequestHandler
def initialize
 
def get
 
def post
 
def head
 
def options
 
def put
 
def delete
 
def trace
 
def error
 
def redirect
 
def handle_exception
 
def new_factory
 
def get_url
 

Static Public Member Functions

def get_task_name
 
def controller_parameters
 

Additional Inherited Members

- Public Attributes inherited from google.appengine.ext.mapreduce.base_handler.HugeTaskHandler
 request
 
- Public Attributes inherited from google.appengine.ext.webapp._webapp25.RequestHandler
 request
 
 response
 

Detailed Description

Supervises mapreduce execution.

Is also responsible for gathering execution status from shards together.

This task is "continuously" running by adding itself again to taskqueue if
and only if mapreduce is still active. A mapreduce is active if it has
actively running shards.

Constructor & Destructor Documentation

def google.appengine.ext.mapreduce.handlers.ControllerCallbackHandler.__init__ (   self,
  args 
)
Constructor.

Member Function Documentation

def google.appengine.ext.mapreduce.handlers.ControllerCallbackHandler.controller_parameters (   mapreduce_spec,
  serial_id 
)
static
Fill in  controller task parameters.

Returned parameters map is to be used as task payload, and it contains
all the data, required by controller to perform its function.

Args:
  mapreduce_spec: specification of the mapreduce.
  serial_id: id of the invocation as int.

Returns:
  string->string map of parameters to be used as task payload.
def google.appengine.ext.mapreduce.handlers.ControllerCallbackHandler.get_task_name (   mapreduce_spec,
  serial_id 
)
static
Compute single controller task name.

Args:
  mapreduce_spec: specification of the mapreduce.
  serial_id: id of the invocation as int.

Returns:
  task name which should be used to process specified shard/slice.
def google.appengine.ext.mapreduce.handlers.ControllerCallbackHandler.handle (   self)
Handle request.
def google.appengine.ext.mapreduce.handlers.ControllerCallbackHandler.reschedule (   cls,
  mapreduce_state,
  mapreduce_spec,
  serial_id,
  queue_name = None 
)
Schedule new update status callback task.

Args:
  mapreduce_state: mapreduce state as model.MapreduceState
  mapreduce_spec: mapreduce specification as MapreduceSpec.
  serial_id: id of the invocation as int.
  queue_name: The queue to schedule this task on. Will use the current
queue of execution if not supplied.
def google.appengine.ext.mapreduce.handlers.ControllerCallbackHandler.serial_id (   self)
Get serial unique identifier of this task from request.

Returns:
  serial identifier as int.

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