Package flumotion :: Package common :: Module planet :: Class ManagerComponentState
[hide private]

Class ManagerComponentState

source code

 twisted.spread.jelly.Jellyable --+                
                                  |                
twisted.spread.flavors.Serializable --+            
                                      |            
        twisted.spread.flavors.Copyable --+        
                                          |        
           twisted.spread.flavors.Cacheable --+    
                                              |    
                 twisted.flavors.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:

It also has a special key, 'mood'. This acts as a proxy for the mood in the WorkerJobState, when there is a job attached (the job's copy is authoritative when it connects), and is controlled independently at other times.

I proxy the following keys from the serialized WorkerJobState:

Instance Methods [hide private]
 
__init__(self) source code
 
__repr__(self) source code
 
setJobState(self, jobState)
Set the job state I proxy from.
source code
 
set(self, key, value)
Set a given state key to the given value.
source code
 
setMood(self, moodValue) source code
 
clearJobState(self, shutdownRequested)
Remove the job state.
source code

Inherited from twisted.flavors.StateCacheable: addDictKey, addKey, addListKey, append, delitem, get, getStateToCacheAndObserveFor, hasKey, keys, remove, setitem, stoppedObserving

Inherited from twisted.spread.flavors.Cacheable: jellyFor

Inherited from twisted.spread.flavors.Copyable: getStateToCopy, getStateToCopyFor, getTypeToCopy, getTypeToCopyFor

Inherited from twisted.spread.flavors.Serializable: processUniqueID

Inherited from twisted.spread.jelly.Jellyable: __providedBy__, getStateFor

Class Variables [hide private]

Inherited from twisted.spread.flavors.Copyable: __implemented__, __provides__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: twisted.flavors.StateCacheable.__init__

setJobState(self, jobState)

source code 

Set the job state I proxy from.

Parameters:

set(self, key, value)

source code 

Set a given state key to the given value. Notifies observers of this Cacheable through observe_set.

Overrides: twisted.flavors.StateCacheable.set
(inherited documentation)