App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
google.appengine.tools.bulkloader._ProgressThreadBase Class Reference
Inheritance diagram for google.appengine.tools.bulkloader._ProgressThreadBase:
google.appengine.tools.bulkloader._ThreadBase google.appengine.tools.bulkloader.ExportProgressThread google.appengine.tools.bulkloader.MapperProgressThread google.appengine.tools.bulkloader.ProgressTrackerThread

Public Member Functions

def __init__
 
def EntitiesTransferred
 
def UpdateProgress
 
def WorkFinished
 
def PerformWork
 
- Public Member Functions inherited from google.appengine.tools.bulkloader._ThreadBase
def __init__
 
def run
 
def SetError
 
def PerformWork
 
def CheckError
 
def GetFriendlyName
 

Public Attributes

 progress_queue
 
 db
 
 entities_transferred
 
- Public Attributes inherited from google.appengine.tools.bulkloader._ThreadBase
 exit_flag
 
 error
 
 traceback
 

Static Public Attributes

string NAME = 'progress tracking thread'
 

Detailed Description

A thread which records progress information for the upload process.

The progress information is stored into the provided progress database.
This class is not responsible for replaying a prior run's progress
information out of the database. Separate mechanisms must be used to
resume a prior upload attempt.

Constructor & Destructor Documentation

def google.appengine.tools.bulkloader._ProgressThreadBase.__init__ (   self,
  progress_queue,
  progress_db 
)
Initialize the ProgressTrackerThread instance.

Args:
  progress_queue: A Queue used for tracking progress information.
  progress_db: The database for tracking progress information; should
be an instance of ProgressDatabase.

Member Function Documentation

def google.appengine.tools.bulkloader._ProgressThreadBase.EntitiesTransferred (   self)
Return the total number of unique entities transferred.
def google.appengine.tools.bulkloader._ProgressThreadBase.PerformWork (   self)
Performs the work of a ProgressTrackerThread.
def google.appengine.tools.bulkloader._ProgressThreadBase.UpdateProgress (   self,
  item 
)
Updates the progress information for the given item.

Args:
  item: A work item whose new state will be recorded
def google.appengine.tools.bulkloader._ProgressThreadBase.WorkFinished (   self)
Performs final actions after the entity transfer is complete.

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