Package conduit :: Module Synchronization :: Class _ThreadedWorker
[hide private]

Class _ThreadedWorker

source code


Aa python thread, Base class for refresh and syncronization operations

Instance Methods [hide private]
 
__init__(self) source code
 
_get_changes(self, source, sink)
Returns all the data from the source to the sink.
source code
 
cancel(self)
Cancels the sync thread.
source code
 
did_sync_error(self) source code
 
did_sync_conflict(self) source code

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, join, run, setDaemon, setName, start

Inherited from threading.Thread (private): _set_daemon

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables [hide private]
  CONFIGURE_STATE = 0
  REFRESH_STATE = 1
  SYNC_STATE = 2
  DONE_STATE = 3
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: threading.Thread.__init__

_get_changes(self, source, sink)

source code 
Returns all the data from the source to the sink. If the dataprovider implements get_changes() then this is called. Otherwise the dataprovider is proxied using DeltaProvider
Returns:
added, modified, deleted

cancel(self)

source code 
Cancels the sync thread. Does not do so immediately but as soon as possible.