Trees | Index | Help |
---|
Package flumotion :: Package manager :: Module depgraph :: Class DepGraph |
|
Loggable
--+
|
DepGraph
I am a dependency graph for components. I also maintain boolean state for each of the nodes.
I contain a DAG to help with resolving dependencies.Method Summary | |
---|---|
__init__(self)
| |
I set a component to be the clock master in the dependency graph. | |
I add a component to the dependency graph. | |
I add a worker to the dependency graph. | |
Checks if component has a CLOCKMASTER node | |
I am called once a piece of configuration has been added, so I can add edges to the DAG for each feed from the feeding component to the eating component. | |
I remove a component in the dependency graph, this includes removing the JOB, COMPONENTSETUP, COMPONENTSTART, CLOCKMASTER. | |
I remove a worker from the dependency graph. | |
Set a CLOCKMASTER node to have state of True | |
Set a CLOCKMASTER node to have state of False | |
Set a COMPONENTSETUP node to have state of False | |
Set a COMPONENTSTART node to have state of False | |
Set a COMPONENTSETUP node to have state of True | |
Set a COMPONENTSTART node to have state of True | |
I assign a component to a specific worker. | |
Set a JOB node to have state of True | |
Set a JOB node to have state of False | |
Set a WORKER node to have state of True | |
Set a WORKER node to have state of False | |
list of (object, str) |
I return a list of things that can and should be started now. |
Inherited from Loggable | |
Log a debug message. | |
dict |
Log a message at the given level, with the possibility of going higher up in the stack. |
Log an error. | |
Log an informational message. | |
Log a log message. | |
Overridable log function. | |
Overridable object name function. | |
Log a warning. | |
Log a warning about a Failure. |
Class Variable Summary | |
---|---|
str |
logCategory : Implementors can provide a category to log their messages under. |
tuple |
typeNames = ('WORKER', 'JOB', 'COMPONENTSETUP', 'CLOCKMA...
|
Inherited from Loggable | |
Implements |
__implemented__ = <implementedBy flumotion.common.log.Lo...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Method Details |
---|
addClockMaster(self, component)I set a component to be the clock master in the dependency graph. This component must have already been added to the dependency graph.
|
addComponent(self, component)I add a component to the dependency graph. This includes adding the worker (if not already added), the job, the feeders and the eaters. Requirement: worker must already be assigned to component
|
addWorker(self, worker)I add a worker to the dependency graph.
|
isAClockMaster(self, component)Checks if component has a CLOCKMASTER node
|
mapEatersToFeeders(self)I am called once a piece of configuration has been added, so I can add edges to the DAG for each feed from the feeding component to the eating component.
|
removeComponent(self, component)I remove a component in the dependency graph, this includes removing the JOB, COMPONENTSETUP, COMPONENTSTART, CLOCKMASTER.
|
removeWorker(self, worker)I remove a worker from the dependency graph.
|
setClockMasterStarted(self, component)Set a CLOCKMASTER node to have state of True
|
setClockMasterStopped(self, component)Set a CLOCKMASTER node to have state of False
|
setComponentNotSetup(self, component)Set a COMPONENTSETUP node to have state of False
|
setComponentNotStarted(self, component)Set a COMPONENTSTART node to have state of False
|
setComponentSetup(self, component)Set a COMPONENTSETUP node to have state of True
|
setComponentStarted(self, component)Set a COMPONENTSTART node to have state of True
|
setComponentWorker(self, component, worker)I assign a component to a specific worker.
|
setJobStarted(self, component)Set a JOB node to have state of True
|
setJobStopped(self, component)Set a JOB node to have state of False
|
setWorkerStarted(self, worker)Set a WORKER node to have state of True
|
setWorkerStopped(self, worker)Set a WORKER node to have state of False
|
whatShouldBeStarted(self)I return a list of things that can and should be started now.
|
Class Variable Details |
---|
logCategoryImplementors can provide a category to log their messages under.
|
typeNames
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Apr 14 13:11:55 2007 | http://epydoc.sf.net |