Home | Trees | Index | Help |
|
---|
Package twisted :: Package spread :: Module pb :: Class RemoteReference |
|
Ephemeral
--+ |Jellyable
--+ | | |Serializable
--+ | RemoteReference
This is a translucent reference to a remote object.
I may be a reference to a flavors.ViewPoint
, a flavors.Referenceable
, or an IPerspective
implementor (e.g., pb.Avatar).
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. | |
Hash me. | |
Called if we are disconnected and have callbacks registered. | |
twisted.internet.defer.Deferred
|
Asynchronously invoke a remote method. |
Remove a callback that was registered with notifyOnDisconnect. | |
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. | |
Get a RemoteMethod for this key. | |
unjellyFor(self,
unjellier,
unjellyList)
| |
Inherited from Serializable | |
Return an ID which uniquely represents this object for this process. | |
Inherited from Jellyable | |
| |
Inherited from Ephemeral | |
| |
|
Instance Variable Summary | |
---|---|
Broker |
broker : The broker I am obtained through. |
Class Variable Summary | |
---|---|
tuple |
__implements__ = (<class twisted.spread.interfaces.IUnje...
|
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.
|
_disconnected(self)Called if we are disconnected and have callbacks registered. |
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.
|
Instance Variable Details |
---|
brokerThe broker I am obtained through.
|
Class Variable Details |
---|
__implements__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:07:45 2004 | http://epydoc.sf.net |