App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.tools.bulkloader.UploadWorkItem Class Reference
Inheritance diagram for google.appengine.tools.bulkloader.UploadWorkItem:
google.appengine.tools.bulkloader._WorkItem google.appengine.tools.adaptive_thread_pool.WorkItem

Public Member Functions

def __init__
 
def __str__
 
def MarkAsTransferred
 
- Public Member Functions inherited from google.appengine.tools.bulkloader._WorkItem
def __init__
 
def SetError
 
def PerformWork
 
def MarkAsRead
 
def MarkAsTransferring
 
def MarkAsTransferred
 
def MarkAsError
 
- Public Member Functions inherited from google.appengine.tools.adaptive_thread_pool.WorkItem
def __init__
 
def PerformWork
 
def __str__
 

Public Attributes

 request_manager
 
 rows
 
 content
 
 count
 
- Public Attributes inherited from google.appengine.tools.bulkloader._WorkItem
 progress_queue
 
 state_namer
 
 state
 
 progress_key
 
 progress_event
 
 key_start
 
 key_end
 
 error
 
 traceback
 
 kind
 

Additional Inherited Members

- Static Public Attributes inherited from google.appengine.tools.adaptive_thread_pool.WorkItem
string SUCCESS = 'success'
 
string RETRY = 'retry'
 
string FAILURE = 'failure'
 

Detailed Description

Holds a unit of uploading work.

A UploadWorkItem represents a number of entities that need to be uploaded to
Google App Engine. These entities are encoded in the "content" field of
the UploadWorkItem, and will be POST'd as-is to the server.

The entities are identified by a range of numeric keys, inclusively. In
the case of a resumption of an upload, or a replay to correct errors,
these keys must be able to identify the same set of entities.

Note that keys specify a range. The entities do not have to sequentially
fill the entire range, they must simply bound a range of valid keys.

Constructor & Destructor Documentation

def google.appengine.tools.bulkloader.UploadWorkItem.__init__ (   self,
  request_manager,
  progress_queue,
  rows,
  key_start,
  key_end,
  progress_key = None 
)
Initialize the UploadWorkItem instance.

Args:
  request_manager: A RequestManager instance.
  progress_queue: A queue used for tracking progress information.
  rows: A list of pairs of a line number and a list of column values.
  key_start: The (numeric) starting key, inclusive.
  key_end: The (numeric) ending key, inclusive.
  progress_key: If this UploadWorkItem represents state from a prior run,
then this will be the key within the progress database.

Member Function Documentation

def google.appengine.tools.bulkloader.UploadWorkItem.MarkAsTransferred (   self)
Mark this UploadWorkItem as sucessfully-sent to the server.

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