Trees | Index | Help |
---|
Package flumotion :: Package twisted :: Module flavors :: Class StateRemoteCache |
|
Unjellyable
--+ |RemoteCopy
--+ |Jellyable
--+ | | |Serializable
--+ |RemoteCache
--+ | StateRemoteCache
AdminAtmosphereState
,
AdminComponentState
,
AdminComponentUIState
,
AdminFlowState
,
AdminPlanetState
,
AdminWorkerHeavenState
,
AdminWorkerState
,
ManagerComponentUIState
,
ManagerJobState
Method Summary | |
---|---|
__init__(self)
| |
Adds a listener to the remote cache. | |
Get the state cache value for the given key. | |
hasKey(self,
key)
| |
keys(self)
| |
observe_append(self,
key,
value)
| |
observe_delitem(self,
key,
subkey,
value)
| |
observe_remove(self,
key,
value)
| |
observe_set(self,
key,
value)
| |
observe_setitem(self,
key,
subkey,
value)
| |
removeListener(self,
listener)
| |
setCopyableState(self,
dict)
| |
_ensureListeners(self)
| |
Inherited from RemoteCache | |
Compare me [to another RemoteCache. | |
Do distributed reference counting on finalize. | |
Hash me. | |
serialize me (only for the broker I'm for) as the original cached reference | |
A remote message has been received. | |
Perform the inverse operation of Jellyable.jellyFor . | |
Inherited from Unjellyable | |
| |
Inherited from Serializable | |
Return an ID which uniquely represents this object for this process. | |
Inherited from Jellyable | |
|
Class Variable Summary | |
---|---|
Inherited from RemoteCache | |
NoneType |
broker = None |
NoneType |
luid = None |
Inherited from RemoteCopy | |
Implements |
__implemented__ = <implementedBy twisted.spread.flavors....
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Inherited from Unjellyable | |
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
Method Details |
---|
addListener(self, listener, set=None, append=None, remove=None, setitem=None, delitem=None)Adds a listener to the remote cache. The caller will be notified of state events via the functions given as the 'set', 'append', and 'remove', 'setitem', and 'delitem' keyword arguments. Setting one of the event handlers to None will ignore that event. It is an error for all event handlers to be None.
|
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. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Fri Feb 2 11:44:37 2007 | http://epydoc.sf.net |