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.
str getFeedName(self)
  getListenHost(self)
  getListenPort(self)
  getName(self)
bool hasComponentAvatar(self)
bool isReady(self)
  setComponentAvatar(self, componentAvatar)
Give the feeder the component avatar that contains the feeder.
  setReadiness(self, readiness)
Set the feeder's readiness, triggering dependency functions.

Method Details

__init__(self, feederName)
(Constructor)

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

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=str)
func - a function to run when the feeder is ready
           (type=callable)
args - arguments to the function

getFeedName(self)

Returns:
str

hasComponentAvatar(self)

Returns:
bool

isReady(self)

Returns:
bool

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)

Set the feeder's readiness, triggering dependency functions.
Parameters:
readiness - bool

Generated by Epydoc 2.1 on Thu Jan 25 09:31:11 2007 http://epydoc.sf.net