Trees | Indices | Help |
---|
|
object --+ | common.common.InitMixin --+ | common.log.Loggable --+ | object --+ | | | gobject.GObject --+ | component.BaseComponent --+ | common.log.Loggable --+ | | | base.http.HTTPAuthentication --+ | common.log.Loggable --+ | HTTPFileStreamer
|
|||
child class of BaseComponentMedium |
componentMediumClass the medium class to use for this component |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
REQUEST_TIMEOUT = 30
|
|||
__implemented__ = <implementedBy flumotion.component.misc.http
|
|||
__provides__ = <zope.interface.declarations.ClassProvides obje
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from Inherited from |
|
Subclasses should not override __init__ at all. Instead, they should implement init(), which will be called by this implementation automatically. See flumotion.common.common.InitMixin for more details.
|
A subclass should do as little as possible in its init method. In particular, it should not try to access resources. Failures during init are marshalled back to the manager through the worker's remote_create method, since there is no component state proxied to the manager yet at the time of init.
|
Subclasses can implement me to set up the component before it is started. It should set up the component, possibly opening files and resources. Non-programming errors should not be raised, but returned as a failing deferred. self.config will be set before this is called.
|
BaseComponent vmethod for stopping. The component should do any cleanup it needs, but must not set the component's mood to sleeping.
|
Provide a new set of porter login information, for when we're in slave mode and the porter changes. If we're currently connected, this won't disconnect - it'll just change the information so that next time we try and connect we'll use the new ones |
BaseComponent vmethod for starting up. If you override this method, you are responsible for arranging that the component becomes happy.
|
Subclasses can implement me to run any checks before the component performs setup. Messages can be added to the component state's 'messages' list key. Any error messages added will trigger the component going to sad an flumotion.common.errors.ComponentSetupError being raised; do_setup() will not be called. In the event of a fatal problem that can't be expressed through an error message, this method should set the mood to sad and raise the error on its own. self.config will be set before this is called.
|
Return a tuple (deltaadded, deltaremoved, bytes_transferred, current_clients, current_load) of our current bandwidth and user values. The deltas and current_load are NOT currently implemented here, we set them as zero. |
|
|
|
|
__implemented__
|
__provides__
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Apr 11 07:40:26 2008 | http://epydoc.sourceforge.net |