Package flumotion :: Package common :: Module planet :: Class ManagerComponentState
[show private | hide private]
[frames | no frames]

Class ManagerComponentState

Jellyable --+                
            |                
 Serializable --+            
                |            
         Copyable --+        
                    |        
            Cacheable --+    
                        |    
           StateCacheable --+
                            |
                           ManagerComponentState


I represent the state of a component in the manager. I have my own state, and also proxy state from the ManagerJobState when the component is actually created in a worker.

I have the following keys of my own: I proxy the following keys from the serialized WorkerJobState:
Method Summary
  __init__(self)
  __repr__(self)
  clearJobState(self)
Remove the job state.
  setJobState(self, jobState)
Set the job state I proxy from.
  stateAppend(self, state, key, value)
  stateRemove(self, state, key, value)
  stateSet(self, state, key, value)
    Inherited from StateCacheable
  addKey(self, key, value)
Add a key to the state cache so it can be used with set.
  addListKey(self, key, value)
Add a key for a list of objects to the state cache.
  append(self, key, value)
Append the given object to the given list.
  get(self, key, otherwise)
Get the state cache value for the given key.
  getStateToCacheAndObserveFor(self, perspective, observer)
Get state to cache on the client and client-cache reference to observe locally.
  hasKey(self, key)
  keys(self)
  remove(self, key, value)
Remove the given object from the given list.
  set(self, key, value)
Set a given state key to the given value.
  stoppedObserving(self, perspective, observer)
This method is called when a client has stopped observing me.
    Inherited from Cacheable
  jellyFor(self, jellier)
Return an appropriate tuple to serialize me.
    Inherited from Copyable
  getStateToCopy(self)
Gather state to send when I am serialized for a peer.
  getStateToCopyFor(self, perspective)
Gather state to send when I am serialized for a particular perspective.
  getTypeToCopy(self)
Determine what type tag to send for me.
  getTypeToCopyFor(self, perspective)
Determine what type tag to send for me.
    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
Implements __implemented__ = <implementedBy flumotion.common.planet...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
    Inherited from Jellyable
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Method Details

clearJobState(self)

Remove the job state.

setJobState(self, jobState)

Set the job state I proxy from.
Parameters:
jobState
           (type=ManagerJobState)

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy flumotion.common.planet.ManagerComponentState>          

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x711bbd50>       

Generated by Epydoc 2.1 on Sun Oct 22 03:16:47 2006 http://epydoc.sf.net