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.ext.mapreduce.api.map_job.shard_life_cycle._ShardLifeCycle Class Reference
Inheritance diagram for google.appengine.ext.mapreduce.api.map_job.shard_life_cycle._ShardLifeCycle:
google.appengine.ext.mapreduce.api.map_job.input_reader.InputReader google.appengine.ext.mapreduce.api.map_job.mapper.Mapper google.appengine.ext.mapreduce.api.map_job.output_writer.OutputWriter google.appengine.ext.mapreduce.api.map_job.abstract_datastore_input_reader.AbstractDatastoreInputReader

Public Member Functions

def begin_shard
 
def end_shard
 
def begin_slice
 
def end_slice
 

Detailed Description

Abstract class for objects that live along shard's life cycle.

Objects that need to plug in business logic into a shard's life cycle
should implement this interface.

The life cycle is:
* begin_shard is called at the beginning of every shard attempt.
* begin_slice is called at the beginning of every slice attempt.
* end_slice is called at the end of a slice. Slice may still fail
  after the call.
* end_shard is called at the end of a shard. Shard may still fail
  after the call.

All these methods are invoked as part of shard execution. So be careful
not to perform long standing IO operations that may kill this request.

Member Function Documentation

def google.appengine.ext.mapreduce.api.map_job.shard_life_cycle._ShardLifeCycle.begin_shard (   self,
  shard_ctx 
)
Called at the beginning of a shard.

This method may be called more than once due to shard and slice retry.
Make it idempotent.

Args:
  shard_ctx: map_job.ShardContext object.
def google.appengine.ext.mapreduce.api.map_job.shard_life_cycle._ShardLifeCycle.begin_slice (   self,
  slice_ctx 
)
Called at the beginning of a slice.

This method may be called more than once due to slice retry.
Make it idempotent.

Args:
  slice_ctx: map_job.SliceContext object.
def google.appengine.ext.mapreduce.api.map_job.shard_life_cycle._ShardLifeCycle.end_shard (   self,
  shard_ctx 
)
Called at the end of a shard.

This method may be called more than once due to shard and slice retry.
Make it idempotent.

If shard execution error out before reaching the end, this method
won't be called.

Args:
  shard_ctx: map_job.ShardContext object.
def google.appengine.ext.mapreduce.api.map_job.shard_life_cycle._ShardLifeCycle.end_slice (   self,
  slice_ctx 
)
Called at the end of a slice.

This method may be called more than once due to slice retry.
Make it idempotent.

If slice execution error out before reaching the end, this method
won't be called.

Args:
  slice_ctx: map_job.SliceContext object.

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