Trees | Indices | Help |
---|
|
object --+ | common.common.InitMixin --+ | extern.log.log.Loggable --+ | component.BaseComponent --+ | extern.log.log.Loggable --+ | HTTPFileStreamer
|
|||
child class of BaseComponentMedium |
componentMediumClass the medium class to use for this component |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
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 |
|
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 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 raise an exception or return a failure. It is not necessary to chain up in this function. The return value may be a deferred.
|
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. The return value may be a deferred.
|
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 |
Remove a client when requested. Used by keycard expiry. |
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 Thu Aug 7 15:45:38 2008 | http://epydoc.sourceforge.net |