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

Class VeryVeryComplicatedCacheable

Jellyable --+            
            |            
 Serializable --+        
                |        
         Copyable --+    
                    |    
            Cacheable --+
                        |
                       VeryVeryComplicatedCacheable


Method Summary
  __init__(self)
  getStateFor(self, jellier)
(inherited from Jellyable)
  getStateToCacheAndObserveFor(self, perspective, observer)
Get state to cache on the client and client-cache reference to observe locally.
  getStateToCopy(self)
Gather state to send when I am serialized for a peer. (inherited from Copyable)
  getStateToCopyFor(self, perspective)
Gather state to send when I am serialized for a particular perspective. (inherited from Copyable)
  getTypeToCopy(self)
Determine what type tag to send for me. (inherited from Copyable)
  getTypeToCopyFor(self, perspective)
Determine what type tag to send for me. (inherited from Copyable)
  jellyFor(self, jellier)
Return an appropriate tuple to serialize me. (inherited from Cacheable)
  processUniqueID(self)
Return an ID which uniquely represents this object for this process. (inherited from Serializable)
  setFoo4(self)
  stoppedObserving(self, perspective, observer)
This method is called when a client has stopped observing me.

Method Details

getStateToCacheAndObserveFor(self, perspective, observer)

Get state to cache on the client and client-cache reference to observe locally.

This is similiar to getStateToCopyFor, but it additionally passes in a reference to the client-side RemoteCache instance that will be created when it is unserialized. This allows Cacheable instances to keep their RemoteCaches up to date when they change, such that no changes can occur between the point at which the state is initially copied and the client receives it that are not propogated.
Overrides:
twisted.spread.flavors.Cacheable.getStateToCacheAndObserveFor (inherited documentation)

stoppedObserving(self, perspective, observer)

This method is called when a client has stopped observing me.

The 'observer' argument is the same as that passed in to getStateToCacheAndObserveFor.
Overrides:
twisted.spread.flavors.Cacheable.stoppedObserving (inherited documentation)

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