Implements controllers.
This file was copied and adapted from celery.
copyright: |
|
---|---|
license: | BSD, see LICENSE for more details. |
Bases: thriftpool.utils.mixin.LogsMixin
Bases: thriftpool.utils.mixin.LogsMixin
A namespace containing components.
Every component must belong to a namespace.
When component classes are created they are added to the mapping of unclaimed components. The components will be claimed when the namespace they belong to is created.
Parameters: |
|
---|
Apply the components in this namespace to an object.
This will apply the __init__ and include methods of each components with the object as argument.
For StartStopComponents the services created will also be added the the objects components attribute.
Bind component to parent object and this namespace.
Will load the component modules this namespace depends on.
Subclasses can override this to return a list of modules to import before components are claimed.
Bases: thriftpool.controllers.base.Controller
alias of ManagerNamespace
Bases: thriftpool.controllers.base.Controller
alias of WorkerNamespace