Home | Trees | Index | Help |
---|
Package twisted :: Package spread :: Module pb :: Class RemoteReference |
|
Jellyable
--+ |Serializable
--+ |Ephemeral
--+ | RemoteReference
This is a translucent reference to a remote object.
I may be a reference to a flavors.ViewPoint
, a flavors.Referenceable
, or a Perspective
. From the client's perspective,
it is not possible to tell which except by convention.
I am a "translucent" reference because although no additional bookkeeping overhead is given to the application programmer for manipulating a reference, return values are asynchronous.
See alsotwisted.internet.defer
.
Method Summary | |
---|---|
(internal) Initialize me with a broker and a locally-unique ID. | |
Compare me [to another RemoteReference ]. | |
Do distributed reference counting on finalization. | |
__getstate__(self)
(inherited from Ephemeral )
| |
Hash me. | |
__setstate__(self,
state)
(inherited from Ephemeral )
| |
twisted.internet.defer.Deferred
|
Asynchronously invoke a remote method. |
Remove a callback that was registered with notifyOnDisconnect. | |
getStateFor(self,
jellier)
(inherited from Jellyable )
| |
If I am being sent back to where I came from, serialize as a local backreference. | |
Register a callback to be called if our broker gets disconnected. | |
Return an ID which uniquely represents this object for this process. (inherited from Serializable )
| |
Get a RemoteMethod for this key. | |
unjellyFor(self,
unjellier,
unjellyList)
| |
Called if we are disconnected and have callbacks registered. |
Method Details |
---|
__init__(self,
perspective,
broker,
luid,
doRefCount)
|
__cmp__(self,
other)
Compare me [to another |
__del__(self)
Do distributed reference counting on finalization.
|
__hash__(self)
Hash me.
|
callRemote(self, name, *args, **kw)Asynchronously invoke a remote method.
|
dontNotifyOnDisconnect(self, callback)Remove a callback that was registered with notifyOnDisconnect. |
jellyFor(self, jellier)If I am being sent back to where I came from, serialize as a local backreference. |
notifyOnDisconnect(self, callback)Register a callback to be called if our broker gets disconnected. This callback will be called with one argument, this instance. |
remoteMethod(self, key)Get aRemoteMethod for this key.
|
_disconnected(self)Called if we are disconnected and have callbacks registered. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sat Feb 15 21:19:24 2003 | http://epydoc.sf.net |