Package twisted :: Package test :: Module test_pb :: Class SimpleLocalCache
[show private | hide private]
[frames | no frames]

Class SimpleLocalCache

Unjellyable --+        
              |        
     RemoteCopy --+    
                  |    
  Jellyable --+   |    
              |   |    
   Serializable --+    
                  |    
        RemoteCache --+
                      |
                     SimpleLocalCache


Method Summary
  __cmp__(self, other)
Compare me [to another RemoteCache. (inherited from RemoteCache)
  __del__(self)
Do distributed reference counting on finalize. (inherited from RemoteCache)
  __hash__(self)
Hash me. (inherited from RemoteCache)
  check(self)
  checkMethod(self)
  checkSelf(self)
  getStateFor(self, jellier)
(inherited from Jellyable)
  jellyFor(self, jellier)
serialize me (only for the broker I'm for) as the original cached reference (inherited from RemoteCache)
  processUniqueID(self)
Return an ID which uniquely represents this object for this process. (inherited from Serializable)
  remoteMessageReceived(self, broker, message, args, kw)
A remote message has been received. (inherited from RemoteCache)
  setCopyableState(self, state)
I will be invoked with the state to copy locally.
  setStateFor(self, unjellier, state)
(inherited from Unjellyable)
  unjellyFor(self, unjellier, jellyList)
(inherited from RemoteCache)

Method Details

setCopyableState(self, state)

I will be invoked with the state to copy locally.

'state' is the data returned from the remote object's 'getStateToCopyFor' method, which will often be the remote object's dictionary (or a filtered approximation of it depending on my peer's perspective).
Overrides:
twisted.spread.flavors.RemoteCopy.setCopyableState (inherited documentation)

Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:29:02 2003 http://epydoc.sf.net