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)
    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)

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