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.ExportProgressThread Class Reference
Inheritance diagram for google.appengine.tools.bulkloader.ExportProgressThread:
google.appengine.tools.bulkloader._ProgressThreadBase google.appengine.tools.bulkloader._ThreadBase

Public Member Functions

def __init__
 
def EntitiesTransferred
 
def WorkFinished
 
def UpdateProgress
 
- Public Member Functions inherited from google.appengine.tools.bulkloader._ProgressThreadBase
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

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

Additional Inherited Members

- Static Public Attributes inherited from google.appengine.tools.bulkloader._ProgressThreadBase
string NAME = 'progress tracking thread'
 

Detailed Description

A thread to record progress information and write record data for exports.

The progress information is stored into a provided progress database.
Exported results are stored in the result database and dumped to an output
file at the end of the download.

Constructor & Destructor Documentation

def google.appengine.tools.bulkloader.ExportProgressThread.__init__ (   self,
  exporter,
  progress_queue,
  progress_db,
  result_db 
)
Initialize the ExportProgressThread instance.

Args:
  exporter: An Exporter instance for the download.
  progress_queue: A Queue used for tracking progress information.
  progress_db: The database for tracking progress information; should
be an instance of ProgressDatabase.
  result_db: The database for holding exported entities; should be an
instance of ResultDatabase.

Member Function Documentation

def google.appengine.tools.bulkloader.ExportProgressThread.EntitiesTransferred (   self)
Return the total number of unique entities transferred.
def google.appengine.tools.bulkloader.ExportProgressThread.UpdateProgress (   self,
  item 
)
Update the state of the given KeyRangeItem.

Args:
  item: A KeyRange instance.
def google.appengine.tools.bulkloader.ExportProgressThread.WorkFinished (   self)
Write the contents of the result database.

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