Class designed to be operated within a thread used to perform the
synchronization operation. Inherits from GObject because it uses signals
to communcate with the main GUI.
Operates on a per Conduit basis, so a single SyncWorker may
synchronize one source with many sinks within a single conduit
|
|
|
|
|
_emit_progress(self,
progress,
dataUID)
Emits progress signals, if the elapsed progress since the last
call to this function is greater that 5%. |
source code
|
|
|
|
|
|
|
_put_data(self,
source,
sink,
sourceData,
sourceDataRid)
Handles exceptions when putting data from source to sink. |
source code
|
|
|
|
_convert_data(self,
source,
sink,
data)
Converts data into a format acceptable for sink, handling
exceptions, etc. |
source code
|
|
|
|
|
|
|
_apply_conflict_policy(self,
sourceWrapper,
sinkWrapper,
comparison,
fromData,
fromDataRid,
toData,
toDataRid)
Applies user policy when a put() has failed. |
source code
|
|
|
|
|
|
|
one_way_sync(self,
source,
sink)
Transfers numItems of data from source to sink. |
source code
|
|
|
|
two_way_sync(self,
source,
sink)
Performs a two way sync from source to sink and back. |
source code
|
|
|
|
|
|
Inherited from _ThreadedWorker:
cancel,
did_sync_conflict,
did_sync_error
Inherited from threading.Thread:
__repr__,
getName,
isAlive,
isDaemon,
join,
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__
|