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

Class Vishnu

Loggable --+
           |
          Vishnu


I am the toplevel manager object that knows about all heavens and factories.
Method Summary
  __init__(self, name, unsafeTracebacks)
  componentAttached(self, componentAvatar)
  componentDetached(self, componentAvatar)
  componentStart(self, componentState)
Start the given component.
  deleteFlow(self, *args, **kwargs)
  emptyPlanet(self)
Empty the planet of all components, and flows.
ComponentMapper or None getComponentMapper(self, object)
Look up an object mapper given the object.
  getComponentStates(self)
  getConfiguration(self)
Returns the manager's configuration as a string suitable for importing via loadConfiguration().
  getFactory(self)
  loadConfiguration(self, filename, data)
Load the configuration from the given filename, merging it on top of the currently running configuration.
  registerComponent(self, componentAvatar)
  setBouncer(self, bouncer)
  unregisterComponent(self, componentAvatar)
  workerAttached(self, workerAvatar)
  workerDetached(self, workerAvatar)
  _addComponent(self, config, parent)
Add a component state for the given component config entry.
  _configToComponentState(self, config, avatar)
  _createHeaven(self, interface, klass)
Create a heaven of the given klass that will send avatars to clients implementing the given medium interface.
  _emptyPlanetCallback(self, result)
  _getComponentsToStart(self)
  _startCallback(self, result, componentState)
  _startErrback(self, error, state)
  _workerStartComponentDelayed(self, result, workerAvatar, componentState, type, config)
  _workerStartComponents(self, workerAvatar, components)
Start the list of components on the given worker, sequentially.
    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
str logCategory: Implementors can provide a category to log their messages under.

Method Details

componentStart(self, componentState)

Start the given component.

The component should be sleeping. The worker it should be started on should be present.

emptyPlanet(self)

Empty the planet of all components, and flows.
Returns:
a deferred that will fire when the planet is empty.

getComponentMapper(self, object)

Look up an object mapper given the object.
Returns:
ComponentMapper or None

getConfiguration(self)

Returns the manager's configuration as a string suitable for importing via loadConfiguration().

loadConfiguration(self, filename, data=None)

Load the configuration from the given filename, merging it on top of the currently running configuration.

setBouncer(self, bouncer)

Parameters:
bouncer
           (type=flumotion.component.bouncers.bouncer.Bouncer)

_addComponent(self, config, parent)

Add a component state for the given component config entry.
Returns:
flumotion.common.planet.ManagerComponentState

_createHeaven(self, interface, klass)

Create a heaven of the given klass that will send avatars to clients implementing the given medium interface.
Parameters:
interface - the medium interface to create a heaven for
           (type=flumotion.common.interfaces.IMedium)
klass - the type of heaven to create
           (type=an implementor of flumotion.common.interfaces.IHeaven)

_workerStartComponents(self, workerAvatar, components)

Start the list of components on the given worker, sequentially.
Parameters:
workerAvatar
           (type=flumotion.manager.worker.WorkerAvatar)
components
           (type=list of flumotion.common.planet.ManagerComponentState)

Class Variable Details

logCategory

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

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