Package flumotion :: Package manager :: Module worker :: Class WorkerHeaven
[hide private]

Class WorkerHeaven

source code

 twisted.spread.jelly.Jellyable --+                
                                  |                
twisted.spread.flavors.Serializable --+            
                                      |            
   twisted.spread.flavors.Referenceable --+        
                                          |        
                twisted.spread.flavors.Root --+    
                                              |    
                    extern.log.log.Loggable --+    
                                              |    
                             base.ManagerHeaven --+
                                                  |
                                                 WorkerHeaven

I interface between the Manager and worker clients. For each worker client I create an WorkerAvatar to handle requests. I live in the manager.

Nested Classes [hide private]
  avatarClass
the class object this heaven instantiates avatars from.
Instance Methods [hide private]
 
__init__(self, vishnu) source code
 
workerAttached(self, workerAvatar)
Notify the heaven that the given worker has logged in.
source code
 
workerDetached(self, workerAvatar)
Notify the heaven that the given worker has logged out.
source code

Inherited from base.ManagerHeaven: getAvatar, getAvatars, hasAvatar

Inherited from twisted.spread.flavors.Root: rootObject

Inherited from twisted.spread.flavors.Referenceable: jellyFor, remoteMessageReceived

Inherited from twisted.spread.flavors.Serializable: processUniqueID

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

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  logCategory = 'workerheaven'
Implementors can provide a category to log their messages under.

Inherited from base.ManagerHeaven: __implemented__, __provides__

Inherited from twisted.spread.flavors.Referenceable: perspective

Instance Variables [hide private]

Inherited from base.ManagerHeaven: avatars, vishnu

Method Details [hide private]

__init__(self, vishnu)
(Constructor)

source code 
Parameters:
  • vishnu - the Vishnu in control of all the heavens
Overrides: base.ManagerHeaven.__init__
(inherited documentation)

workerAttached(self, workerAvatar)

source code 

Notify the heaven that the given worker has logged in.

Parameters:

workerDetached(self, workerAvatar)

source code 

Notify the heaven that the given worker has logged out.

Parameters: