Package flumotion :: Package twisted :: Module flavors :: Class StateRemoteCache
[show private | hide private]
[frames | no frames]

Class StateRemoteCache

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

Known Subclasses:
AdminAtmosphereState, AdminComponentState, AdminComponentUIState, AdminFlowState, AdminPlanetState, AdminWorkerHeavenState, ManagerComponentUIState, ManagerJobState

I am a remote cache of a state object.
Method Summary
  __init__(self)
  addListener(self, listener)
  get(self, key, otherwise)
Get the state cache value for the given key.
  hasKey(self, key)
  observe_append(self, key, value)
  observe_remove(self, key, value)
  observe_set(self, key, value)
  removeListener(self, listener)
  setCopyableState(self, dict)
    Inherited from RemoteCache
  __cmp__(self, other)
Compare me [to another RemoteCache.
  __del__(self)
Do distributed reference counting on finalize.
  __hash__(self)
Hash me.
  jellyFor(self, jellier)
serialize me (only for the broker I'm for) as the original cached reference
  remoteMessageReceived(self, broker, message, args, kw)
A remote message has been received.
  unjellyFor(self, unjellier, jellyList)
    Inherited from Unjellyable
  setStateFor(self, unjellier, state)
    Inherited from Serializable
  processUniqueID(self)
Return an ID which uniquely represents this object for this process.
    Inherited from Jellyable
  getStateFor(self, jellier)

Class Variable Summary
    Inherited from RemoteCache
NoneType broker = None                                                                  
NoneType luid = None                                                                  
    Inherited from Unjellyable
tuple __implements__ = (<class 'twisted.spread.interfaces.IUnj...

Method Details

get(self, key, otherwise=None)

Get the state cache value for the given key.

Return otherwise in case where key is present but value None.

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net