__doDeferredGenerate def __doDeferredGenerate(self, task) This is the task that generates an object on the deferred queue. |
__doGenerate def __doGenerate(self, parentId, zoneId, classId, doId, di) Undocumented function. |
__doUpdate def __doUpdate(self, doId, di, ovUpdated) Undocumented function. |
__doUpdateOwner def __doUpdateOwner(self, doId, di) Undocumented function. |
__init__ def __init__(self, dcFileNames=None) Undocumented function. |
_addDelayDeletedDO def _addDelayDeletedDO(self, do) Undocumented function. |
_getMsgName def _getMsgName(self, msgId) Undocumented function. |
_logFailedDisable def _logFailedDisable(self, doId, ownerView) Undocumented function. |
_removeDelayDeletedDO def _removeDelayDeletedDO(self, do) Undocumented function. |
allocateContext def allocateContext(self) Undocumented function. |
considerHeartbeat def considerHeartbeat(self) Send a heartbeat message if we haven't sent one recently. |
disableDoId def disableDoId(self, doId, ownerView=False) Undocumented function. |
flushGenerates def flushGenerates(self) Forces all pending generates to be performed immediately. |
generateWithRequiredFields def generateWithRequiredFields(self, dclass, doId, di, parentId, zoneId) Undocumented function. |
generateWithRequiredOtherFields def generateWithRequiredOtherFields(self, dclass, doId, di, parentId=None, zoneId=None) Undocumented function. |
generateWithRequiredOtherFieldsOwner def generateWithRequiredOtherFieldsOwner(self, dclass, doId, di) Undocumented function. |
getObjectsOfClass def getObjectsOfClass(self, objClass) returns dict of doId:object, containing all objects that inherit from 'class'. returned dict is safely mutable. |
getObjectsOfExactClass def getObjectsOfExactClass(self, objClass) returns dict of doId:object, containing all objects that are exactly of type 'class' (neglecting inheritance). returned dict is safely mutable. |
getServerDelta def getServerDelta(self) Undocumented function. |
getServerTimeOfDay def getServerTimeOfDay(self) Returns the current time of day (seconds elapsed since the 1972 epoch) according to the server's clock. This is in GMT, and hence is irrespective of timezones. The value is computed based on the client's clock and the known delta from the server's clock, which is not terribly precisely measured and may drift slightly after startup, but it should be accurate plus or minus a couple of seconds. |
getTables def getTables(self, ownerView) Undocumented function. |
getWorld def getWorld(self, doId) Undocumented function. |
handleDelete def handleDelete(self, di) Undocumented function. |
handleDisable def handleDisable(self, di, ownerView=False) Undocumented function. |
handleGenerateWithRequired def handleGenerateWithRequired(self, di) Undocumented function. |
handleGenerateWithRequiredOther def handleGenerateWithRequiredOther(self, di) Undocumented function. |
handleGenerateWithRequiredOtherOwner def handleGenerateWithRequiredOtherOwner(self, di) Undocumented function. |
handleGoGetLost def handleGoGetLost(self, di) Undocumented function. |
handleQuietZoneGenerateWithRequired def handleQuietZoneGenerateWithRequired(self, di) Undocumented function. |
handleQuietZoneGenerateWithRequiredOther def handleQuietZoneGenerateWithRequiredOther(self, di) Undocumented function. |
handleServerHeartbeat def handleServerHeartbeat(self, di) Undocumented function. |
handleSystemMessage def handleSystemMessage(self, di) Undocumented function. |
handleUpdateField def handleUpdateField(self, di) This method is called when a CLIENT_OBJECT_UPDATE_FIELD message is received; it decodes the update, unpacks the arguments, and calls the corresponding method on the indicated DistributedObject. In fact, this method is exactly duplicated by the C++ method cConnectionRepository::handle_update_field(), which was written to optimize the message loop by handling all of the CLIENT_OBJECT_UPDATE_FIELD messages in C++. That means that nowadays, this Python method will probably never be called, since UPDATE_FIELD messages will not even be passed to the Python message handlers. But this method remains for documentation purposes, and also as a "just in case" handler in case we ever do come across a situation in the future in which python might handle the UPDATE_FIELD message. |
isLive def isLive(self) Undocumented function. |
isLocalId def isLocalId(self, id) Undocumented function. |
printDelayDeletes def printDelayDeletes(self) Undocumented function. |
replaceMethod def replaceMethod(self, oldMethod, newFunction) Undocumented function. |
replayDeferredGenerate def replayDeferredGenerate(self, msgType, extra) Override this to do something appropriate with deferred "generate" messages when they are replayed(). |
sendDisconnect def sendDisconnect(self) Undocumented function. |
sendHeartbeat def sendHeartbeat(self) Undocumented function. |
sendHeartbeatTask def sendHeartbeatTask(self, task) Undocumented function. |
sendSetLocation def sendSetLocation(self, doId, parentId, zoneId) Undocumented function. |
setDeferInterval def setDeferInterval(self, deferInterval) Specifies the minimum amount of time, in seconds, that must elapse before generating any two DistributedObjects whose class type is marked "deferrable". Set this to 0 to indicate no deferring will occur. |
setServerDelta def setServerDelta(self, delta) Indicates the approximate difference in seconds between the client's clock and the server's clock, in universal time (not including timezone shifts). This is mainly useful for reporting synchronization information to the logs; don't depend on it for any precise timing requirements. Also see Notify.setServerDelta(), which also accounts for a timezone shift. |
startHeartbeat def startHeartbeat(self) Undocumented function. |
stopHeartbeat def stopHeartbeat(self) Undocumented function. |
uniqueName def uniqueName(self, desc) Undocumented function. |
waitForNextHeartBeat def waitForNextHeartBeat(self) Undocumented function. |