|
def | __init__ (self, cr) |
|
def | announceGenerate (self) |
|
def | delete (self) |
|
def | disable (self) |
|
def | doUpdate (self, task) |
|
def | generate (self) |
| DistributedObject methods ###. More...
|
|
def | handleClockError (self) |
| Automatic clock error handling ###. More...
|
|
def | serverTime (self, context, timestamp) |
|
def | startTask (self) |
| Task management methods ###. More...
|
|
def | stopTask (self) |
|
def | synchronize (self, description) |
| Synchronization methods ###. More...
|
|
def | addInterest (self, zoneId, note="", event=None) |
|
def | b_setLocation (self, parentId, zoneId) |
|
def | d_setLocation (self, parentId, zoneId) |
|
def | deleteOrDelay (self) |
|
def | disableAndAnnounce (self) |
|
def | disableAnnounceAndDelete (self) |
|
def | doCallbackContext (self, context, args) |
|
def | doneBarrier (self, name=None) |
|
def | execCommand (self, string, mwMgrId, avId, zoneId) |
|
def | flushCachedData (self, name) |
|
def | generateInit (self) |
|
def | getAutoInterests (self) |
|
def | getBarrierData (self) |
|
def | getCacheable (self) |
|
def | getCachedData (self, name) |
|
def | getCallback (self, context) |
|
def | getCallbackArgs (self, context) |
|
def | getCallbackContext (self, callback, extraArgs=[]) |
|
def | getCurrentContexts (self) |
|
def | getDelayDeleteCount (self) |
|
def | getDelayDeleteEvent (self) |
|
def | getDisableEvent (self) |
|
def | getDoId (self) |
|
def | getLocation (self) |
|
def | getNeverDisable (self) |
|
def | getParentObj (self) |
|
def | hasCachedData (self, name) |
|
def | isDisabled (self) |
|
def | isGenerated (self) |
|
def | isGridParent (self) |
|
def | isLocal (self) |
|
def | postGenerateMessage (self) |
|
def | removeInterest (self, handle, event=None) |
|
def | sendDeleteMsg (self) |
|
def | sendDisableMsg (self) |
|
def | sendUpdate (self, fieldName, args=[], sendToId=None) |
|
def | setBarrierData (self, data) |
|
def | setCacheable (self, bool) |
|
def | setCachedData (self, name, data) |
|
def | setLocation (self, parentId, zoneId) |
|
def | setNeverDisable (self, bool) |
|
def | status (self, indent=0) |
|
def | taskName (self, taskString) |
|
def | uniqueName (self, idString) |
|
def | updateAllRequiredFields (self, dclass, di) |
|
def | updateRequiredFields (self, dclass, di) |
|
def | updateRequiredOtherFields (self, dclass, di) |
|
def | handleChildArrive (self, childObj, zoneId) |
|
def | handleChildArriveZone (self, childObj, zoneId) |
|
def | handleChildLeave (self, childObj, zoneId) |
|
def | handleChildLeaveZone (self, childObj, zoneId) |
|
def | handleQueryObjectChildrenLocalDone (self, context) |
|
def | hasParentingRules (self) |
|
def | accept (self, event, method, extraArgs=[]) |
|
def | acceptOnce (self, event, method, extraArgs=[]) |
|
def | addTask (self, *args, **kwargs) |
|
def | detectLeaks (self) |
|
def | doMethodLater (self, *args, **kwargs) |
|
def | getAllAccepting (self) |
|
def | ignore (self, event) |
|
def | ignoreAll (self) |
|
def | isAccepting (self, event) |
|
def | isIgnoring (self, event) |
|
def | removeAllTasks (self) |
|
def | removeTask (self, taskOrName) |
|
This DistributedObject lives on the AI and on the client side, and
serves to synchronize the time between them so they both agree, to
within a few hundred milliseconds at least, what time it is.
It uses a pull model where the client can request a
synchronization check from time to time. It also employs a
round-trip measurement to minimize the effect of latency.
def synchronize |
( |
|
self, |
|
|
|
description |
|
) |
| |
Synchronization methods ###.
synchronize(self, string description)
Call this function from time to time to synchronize watches
with the server. This initiates a round-trip transaction;
when the transaction completes, the time will be synced.
The description is the string that will be written to the log
file regarding the reason for this synchronization attempt.
The return value is true if the attempt is made, or false if
it is too soon since the last attempt.