Package flumotion :: Package manager :: Module component :: Class FeedMap
[hide private]

type FeedMap

source code

                 object --+
                          |
extern.log.log.Loggable --+
                          |
                         FeedMap

Instance Methods [hide private]
 
__init__(self) source code
 
componentAttached(self, avatar) source code
 
componentDetached(self, avatar) source code
 
_getFeederAvatar(self, eater, feedId) source code
 
_recalc(self) source code
list of (str, ComponentAvatar, str)
getFeedersForEaters(self, avatar)
Get the set of feeds that this component is eating from, keyed by eater alias.
source code
list of (str, ComponentAvatar, str)
getFeedersForEater(self, avatar, ffid)
Get the set of feeds that this component is eating from for the given feedId.
source code
list of (str, ComponentAvatar, str)
getEatersForFeeders(self, avatar)
Get the set of eaters that this component feeds, keyed by feeder name.
source code

Inherited from extern.log.log.Loggable: __providedBy__, __provides__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  logName = 'feed-map'

Inherited from extern.log.log.Loggable: __implemented__, logCategory

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

getFeedersForEaters(self, avatar)

source code 

Get the set of feeds that this component is eating from, keyed by eater alias.

Returns: list of (str, ComponentAvatar, str)
a list of (eaterAlias, feederAvatar, feedName) tuples

getFeedersForEater(self, avatar, ffid)

source code 

Get the set of feeds that this component is eating from for the given feedId.

Parameters:
  • avatar (ComponentAvatar) - the eater component
  • ffid (str) - full feed id for which to return feeders
Returns: list of (str, ComponentAvatar, str)
a list of (eaterAlias, feederAvatar, feedName) tuples

getEatersForFeeders(self, avatar)

source code 

Get the set of eaters that this component feeds, keyed by feeder name.

Returns: list of (str, ComponentAvatar, str)
a list of (feederName, eaterAvatar, eaterAlias) tuples