Part of twisted.spread.pb View Source View In Hierarchy
Known subclasses: twisted.manhole.explorer.Signature, twisted.spread.pb.Cacheable, twisted.web.server.Request, twisted.web2.compat.OldRequestAdapter
Subclass me to get copied each time you are returned from or passed to a remote method.
When I am returned from or passed to a remote method call, I will be converted into data via a set of callbacks (see my methods for more info). That data will then be serialized using Jelly, and sent to the peer.
The peer will then look up the type to represent this with; seeRemoteCopy
for
details.
Method | getStateToCopy | Gather state to send when I am serialized for a peer. |
Method | getStateToCopyFor | Gather state to send when I am serialized for a particular perspective. |
Method | getTypeToCopy | Determine what type tag to send for me. |
Method | getTypeToCopyFor | Determine what type tag to send for me. |
Method | jellyFor | Assemble type tag and state to copy for this broker. |
Inherited from Serializable:
Method | processUniqueID | Return an ID which uniquely represents this object for this process. |
Inherited from Jellyable (via Serializable):
Method | getStateFor | Undocumented |
Gather state to send when I am serialized for a peer.
I will default to returning self.__dict__. Override this to customize this behavior.Gather state to send when I am serialized for a particular perspective.
I will default to callinggetStateToCopy
.
Override this to customize this behavior.
Determine what type tag to send for me.
By default, send the string representation of my class (package.module.Class); normally this is adequate, but you may override this to change it.Determine what type tag to send for me.
By default, defer to self.getTypeToCopy
()
normally this is adequate, but you may override this to change it.
Assemble type tag and state to copy for this broker.
This will callgetTypeToCopyFor
and getStateToCopy
,
and return an appropriate s-expression to represent me.