![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | PerformWork |
![]() | |
def | __init__ |
def | run |
def | SetError |
def | PerformWork |
def | CheckError |
def | GetFriendlyName |
Public Attributes | |
request_manager | |
kinds | |
thread_pool | |
progress_queue | |
workitem_generator_factory | |
progress_generator_factory | |
entity_count | |
xfer_count | |
read_count | |
read_all | |
![]() | |
exit_flag | |
error | |
traceback | |
Static Public Attributes | |
string | NAME = 'data source thread' |
A thread which reads WorkItems and pushes them into queue. This thread will read/consume WorkItems from a generator (produced by the generator factory). These WorkItems will then be pushed into the thread_pool. Note that reading will block if/when the thread_pool becomes full. Information on content consumed from the generator will be pushed into the progress_queue.
def google.appengine.tools.bulkloader.DataSourceThread.__init__ | ( | self, | |
request_manager, | |||
kinds, | |||
thread_pool, | |||
progress_queue, | |||
workitem_generator_factory, | |||
progress_generator_factory | |||
) |
Initialize the DataSourceThread instance. Args: request_manager: A RequestManager instance. kinds: The kinds of entities being transferred. thread_pool: An AdaptiveThreadPool instance. progress_queue: A queue used for tracking progress information. workitem_generator_factory: A factory that creates a WorkItem generator progress_generator_factory: A factory that creates a generator which produces prior progress status, or None if there is no prior status to use.
def google.appengine.tools.bulkloader.DataSourceThread.PerformWork | ( | self | ) |
Performs the work of a DataSourceThread.