Package flumotion :: Package manager :: Module admin :: Class AdminHeaven
[show private | hide private]
[frames | no frames]

Class AdminHeaven

             Loggable --+    
                        |    
Jellyable --+           |    
            |           |    
 Serializable --+       |    
                |       |    
    Referenceable --+   |    
                    |   |    
                 Root --+    
                        |    
            ManagerHeaven --+
                            |
                           AdminHeaven


I interface between the Manager and administrative clients. For each client I create an AdminAvatar to handle requests. I live in the manager.
Method Summary
  __init__(self, vishnu)
  avatarsCallRemote(self, methodName, *args, **kwargs)
Call a remote method on all AdminAvatars in this heaven.
    Inherited from ManagerHeaven
flumotion.manager.base.ManagerAvatar createAvatar(self, avatarId, remoteIdentity)
Create a new avatar and manage it.
ManagerAvatar getAvatar(self, avatarId)
Get the avatar with the given id.
list of ManagerAvatar getAvatars(self)
Get all avatars in this heaven.
bool hasAvatar(self, avatarId)
Check if a component with that name is registered.
  removeAvatar(self, avatarId)
Stop managing the given avatar.
    Inherited from Root
  rootObject(self, broker)
A pb.BrokerFactory is requesting to publish me as a root object.
    Inherited from Referenceable
  jellyFor(self, jellier)
(internal)
  remoteMessageReceived(self, broker, message, args, kw)
A remote message has been received.
    Inherited from Serializable
  processUniqueID(self)
Return an ID which uniquely represents this object for this process.
    Inherited from Jellyable
  getStateFor(self, jellier)
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
dict doLog(self, level, where, format, *args, **kwargs)
Log a message at the given level, with the possibility of going higher up in the stack.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, *args)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure, swallow)
Log a warning about a Failure.

Instance Variable Summary
    Inherited from ManagerHeaven
dict of str -> ManagerAvatar avatars: a dict of avatarId -> Avatar
flumotion.manager.manager.Vishnu vishnu: the Vishnu in control of all the heavens

Class Variable Summary
Implements __implemented__ = <implementedBy flumotion.manager.admin...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
NoneType avatarClass = flumotion.manager.admin.AdminAvatar
str logCategory: Implementors can provide a category to log their messages under.
    Inherited from Referenceable
NoneType perspective = None                                                                  
    Inherited from Jellyable
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Method Details

__init__(self, vishnu)
(Constructor)

Parameters:
vishnu - the Vishnu in control of all the heavens
           (type=flumotion.manager.manager.Vishnu)
Overrides:
flumotion.manager.base.ManagerHeaven.__init__ (inherited documentation)

avatarsCallRemote(self, methodName, *args, **kwargs)

Call a remote method on all AdminAvatars in this heaven.
Parameters:
methodName - Name of the method to call. Gets proxied to flumotion.admin.admin.AdminModel's remote_(methodName)
           (type=str)

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy flumotion.manager.admin.AdminHeaven>                    

__provides__

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

logCategory

Implementors can provide a category to log their messages under.
Type:
str
Value:
'admin-heaven'                                                         

Generated by Epydoc 2.1 on Sun Oct 26 16:38:51 2008 http://epydoc.sf.net