Trees | Index | Help |
---|
Package flumotion :: Package component :: Module feedcomponent08 :: Class FeedComponent |
|
object
--+ |GObject
--+ |object
--+ | | |InitMixin
--+ |Loggable
--+ |BaseComponent
--+ | FeedComponent
Method Summary | |
---|---|
addEffect(self,
effect)
| |
cleanup(self)
| |
create_pipeline(self)
| |
Subclasses can implement me to set up the component before it is started. | |
BaseComponent vmethod for stopping. | |
Called when the eater element changes state. | |
Notify the manager that an effect property has changed to a new value. | |
feeder_state_change_cb(self,
element,
old,
state,
feed_name)
| |
Return the list of feeder names this component eats from. | |
get_element(self,
element_name)
| |
Gets a property of an element in the GStreamer pipeline. | |
Return the list of feeder names this component has. | |
Return the list of feeder names this component has. | |
get_pipeline(self)
| |
A subclass should do as little as possible in its init method. | |
Make the component eat from the feeds it depends on and start producing feeds itself. | |
parseEaterConfig(self,
eater_config)
| |
parseFeederConfig(self,
feeder_config)
| |
pause(self)
| |
pipeline_pause(self)
| |
Start playing the pipeline. | |
pipeline_stop(self)
| |
play(self)
| |
provide_master_clock(self,
port)
| |
restart(self)
| |
Sets a property on an element in the GStreamer pipeline. | |
set_master_clock(self,
ip,
port,
base_time)
| |
set_pipeline(self,
pipeline)
| |
Set the given gst state and start iterating the pipeline if not done yet. | |
setup_pipeline(self)
| |
Update the mood because a mood condition has changed. | |
_eaterReconnect(self,
element)
| |
_pipeline_error_cb(self,
object,
element,
error,
arg)
| |
Set up the feeded GStreamer elements in our pipeline based on information in the tuple. | |
Set up the feeding GStreamer elements in our pipeline based on information in the tuple. | |
Inherited from BaseComponent | |
Subclasses should not override __init__ at all. | |
Add a message to the component. | |
Call a remote method on all admin client views on this component. | |
Subclasses can implement me to run any checks before the component performs setup. | |
BaseComponent vmethod for starting up. | |
| |
| |
| |
| |
Set the given mood on the component if it's different from the current one. | |
Sets up the component with the given config. | |
| |
Tell the component to start. | |
Start sending heartbeats. | |
Tell the component to stop. | |
Stop sending heartbeats. | |
Send heartbeat to manager and reschedule. | |
| |
Inherited from Loggable | |
Log a debug message. | |
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. | |
Inherited from GObject | |
x.__cmp__(y) <==> cmp(x,y) | |
| |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
x.__repr__() <==> repr(x) | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Instance Variable Summary | |
---|---|
Inherited from BaseComponent | |
string | name : the name of the component |
Class Variable Summary | |
---|---|
GType |
__gtype__ = <GType flumotion+component+feedcomponent08+F...
|
str |
EATER_TMPL = 'tcpclientsrc name=%(name)s'
|
str |
FEEDER_TMPL = 'tcpserversink name=%(name)s buffers-max=5...
|
str |
logCategory : Implementors can provide a category to log their messages under. |
int |
_reconnectInterval = 3 |
Inherited from BaseComponent | |
int |
_heartbeatInterval = 5 |
Inherited from Loggable | |
Implements |
__implemented__ = <implementedBy flumotion.common.log.Lo...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Inherited from GObject | |
str |
__gdoc__ = 'Object GObject\n\nSignals from GObject:\n n...
|
getset_descriptor |
__grefcount__ = <attribute '__grefcount__' of 'gobject.G...
|
GProps |
props = <gobject.GProps object at 0x41d3972c>
|
Method Details |
---|
do_setup(self)Subclasses can implement me to set up the component before it is started. It should set up the component, possibly opening files and resources. self.config will be set when this is called.
|
do_stop(self)BaseComponent vmethod for stopping. If you override this method, you are responsible for arranging that the component becomes sleeping.
|
eater_state_change_cb(self, element, old, state)Called when the eater element changes state. |
effectPropertyChanged(self, effectName, propertyName, value)Notify the manager that an effect property has changed to a new value. Admin clients will receive it as a propertyChanged message for effectName:propertyName. |
get_eater_names(self)Return the list of feeder names this component eats from. |
get_element_property(self, element_name, property)Gets a property of an element in the GStreamer pipeline. |
get_feed_names(self)Return the list of feeder names this component has. |
get_feeder_names(self)Return the list of feeder names this component has. |
init(self)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.
|
link(self, eatersData, feedersData)Make the component eat from the feeds it depends on and start producing feeds itself.
|
pipeline_play(self)Start playing the pipeline.
|
set_element_property(self, element_name, property, value)Sets a property on an element in the GStreamer pipeline. |
set_state_and_iterate(self, state)Set the given gst state and start iterating the pipeline if not done yet. |
updateMood(self)Update the mood because a mood condition has changed. Will not change the mood if it's sad - sad needs to be explicitly fixed. See the mood transition diagram. |
_setup_eaters(self, eatersData)Set up the feeded GStreamer elements in our pipeline based on information in the tuple. For each feeded element in the tuple, it sets the host and port of the feeder on the feeded element.
|
_setup_feeders(self, feedersData)Set up the feeding GStreamer elements in our pipeline based on information in the tuple. For each feeding element in the tuple, it sets the host and port it will listen as.
|
Class Variable Details |
---|
__gtype__
|
EATER_TMPL
|
FEEDER_TMPL
|
logCategoryImplementors can provide a category to log their messages under.
|
_reconnectInterval
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Sep 13 13:38:35 2006 | http://epydoc.sf.net |