Trees | Indices | Help |
---|
|
object --+ | common.common.InitMixin --+ | common.log.Loggable --+ | object --+ | | | gobject.GObject --+ | component.BaseComponent --+ | common.log.Loggable --+ | Porter
The porter optionally sits in front of a set of streamer components. The porter is what actually deals with incoming connections on a TCP socket. It decides which streamer to direct the connection to, then passes the FD (along with some amount of already-read data) to the appropriate streamer.
|
|||
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 |
|
|||
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.
|
Register a path as being served by a streamer represented by this avatar. Will remove any previous registration at this path.
|
Attempt to deregister the given path. A deregistration will only be accepted if the mapping is to the avatar passed.
|
Register a destination for all requests directed to anything beginning with a specified prefix. Where there are multiple matching prefixes, the longest is selected.
|
Attempt to deregister a default destination for all requests not directed to a specifically-mapped path. This will only succeed if the default is currently equal to this avatar.
|
Find a destination Avatar for this path.
|
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.
|
BaseComponent vmethod for starting up. If you override this method, you are responsible for arranging that the component becomes happy.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Apr 11 07:40:26 2008 | http://epydoc.sourceforge.net |