Package flumotion :: Package manager :: Module base :: Class ManagerHeaven
[show private | hide private]
[frames | no frames]

Class ManagerHeaven

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

Known Subclasses:
AdminHeaven, ComponentHeaven, WorkerHeaven

I am a base class for heavens in the manager.
Method Summary
  __init__(self, vishnu)
flumotion.manager.admin.AdminAvatar createAvatar(self, avatarId)
Create a new administration 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.
boolean 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.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, message)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure)
Log a warning about a Failure.

Class Variable Summary
NoneType avatarClass = None                                                                  
    Inherited from Root
tuple __implements__ = (<class 'twisted.spread.flavors.IPBRoot...
    Inherited from Referenceable
NoneType perspective = None                                                                  
    Inherited from Loggable
str logCategory: Implementors can provide a category to log their messages under.

Method Details

__init__(self, vishnu)
(Constructor)

Parameters:
vishnu - the Vishnu in control of all the heavens
           (type=flumotion.manager.manager.Vishnu)

createAvatar(self, avatarId)

Create a new administration avatar and manage it.
Returns:
a new avatar for the admin client.
           (type=flumotion.manager.admin.AdminAvatar)

getAvatar(self, avatarId)

Get the avatar with the given id.
Parameters:
avatarId - id of the avatar to get
           (type=string)
Returns:
ManagerAvatar

getAvatars(self)

Get all avatars in this heaven.
Returns:
list of ManagerAvatar

hasAvatar(self, avatarId)

Check if a component with that name is registered.
Parameters:
avatarId - id of the avatar to check
           (type=string)
Returns:
True if an avatar with that id is registered
           (type=boolean)

removeAvatar(self, avatarId)

Stop managing the given avatar.
Parameters:
avatarId - id of the avatar to remove
           (type=string)

Class Variable Details

avatarClass

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net