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

Class Feeder


I am an object used by FeederSet. My name is of the form componentName:feedName
Method Summary
  __init__(self, feederName)
  __repr__(self)
  addDependency(self, feederName, func, *args)
Add a dependency function for this feeder depending on another feeder in another component.
  getFeedName(self)
  getListenHost(self)
  getListenPort(self)
  getName(self)
  hasComponentAvatar(self)
  isReady(self)
  setComponentAvatar(self, componentAvatar)
Give the feeder the component avatar that contains the feeder.
  setReadiness(self, readiness)

Method Details

__init__(self, feederName)
(Constructor)

Parameters:
feederName - the name of the feeder
           (type=string)

addDependency(self, feederName, func, *args)

Add a dependency function for this feeder depending on another feeder in another component. The function will be called when the other feeder is ready.
Parameters:
feederName - the name of the feeder (componentName:feedName).
           (type=string)
func - a function to run when the feeder is ready
args - arguments to the function

setComponentAvatar(self, componentAvatar)

Give the feeder the component avatar that contains the feeder.
Parameters:
componentAvatar - avatar for the component containing this feeder
           (type=flumotion.manager.component.ComponentAvatar)

setReadiness(self, readiness)

Parameters:
readiness -

bool

Set the feeder to ready, triggering dependency functions.

Generated by Epydoc 2.1 on Wed Feb 16 07:23:00 2005 http://epydoc.sf.net