Package flumotion :: Package component :: Module feedcomponent :: Class FeedComponentMedium
[hide private]

Class FeedComponentMedium

source code

 twisted.spread.jelly.Jellyable --+                        
                                  |                        
twisted.spread.flavors.Serializable --+                    
                                      |                    
   twisted.spread.flavors.Referenceable --+                
                                          |                
                    common.log.Loggable --+                
                                          |                
                   twisted.pb.Referenceable --+            
                                              |            
                       common.medium.BaseMedium --+        
                                                  |        
                        common.medium.PingingMedium --+    
                                                      |    
                          component.BaseComponentMedium --+
                                                          |
                                                         FeedComponentMedium
Known Subclasses:

I am a component-side medium for a FeedComponent to interface with the manager-side ComponentAvatar.

Instance Methods [hide private]
 
__init__(self, component) source code
 
remote_getElementProperty(self, elementName, property) source code
 
remote_setElementProperty(self, elementName, property, value) source code
 
remote_setGstDebug(self, debug)
Sets the GStreamer debugging levels based on the passed debug string.
source code
 
remote_eatFrom(self, fullFeedId, host, port)
Tell the component the host and port for the FeedServer through which it can connect a local eater to a remote feeder to eat the given fullFeedId.
source code
 
connectEater(self, feedId)
Actually eat the given feed.
source code
 
remote_feedTo(self, componentId, feedId, host, port)
Tell the component to feed the given feed to the receiving component accessible through the FeedServer on the given host and port.
source code
tuple of (str, int, long)
remote_provideMasterClock(self, port)
Tells the component to start providing a master clock on the given UDP port.
source code
 
remote_effect(self, effectName, methodName, *args, **kwargs)
Invoke the given methodName on the given effectName in this component.
source code

Inherited from component.BaseComponentMedium: getIP, getManagerIP, remote_callMethod, remote_getConfig, remote_getState, remote_getUIState, remote_reloadComponent, remote_setup, remote_start, remote_stop, setAuthenticator, setup

Inherited from component.BaseComponentMedium (private): _reloaded

Inherited from common.medium.PingingMedium: setRemoteReference, startPinging, stopPinging

Inherited from common.medium.BaseMedium: callRemote, callRemoteLogging, hasRemoteReference, runBundledFunction

Inherited from twisted.pb.Referenceable: remoteMessageReceived

Inherited from twisted.spread.flavors.Referenceable: jellyFor

Inherited from twisted.spread.flavors.Serializable: processUniqueID

Inherited from twisted.spread.jelly.Jellyable: __providedBy__, getStateFor

Inherited from common.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Class Variables [hide private]
  logCategory = 'feedcompmed'
Implementors can provide a category to log their messages under.
str remoteLogName = 'feedserver'
name to use to log the other side of the connection
  __implemented__ = <implementedBy flumotion.component.feedcompo...
  __provides__ = <zope.interface.declarations.ClassProvides obje...

Inherited from component.BaseComponentMedium: authenticator

Inherited from common.medium.BaseMedium: bundleLoader

Inherited from twisted.spread.flavors.Referenceable: perspective

Instance Variables [hide private]

Inherited from common.medium.BaseMedium: remote

Method Details [hide private]

__init__(self, component)
(Constructor)

source code 
Parameters:
Overrides: component.BaseComponentMedium.__init__

remote_eatFrom(self, fullFeedId, host, port)

source code 

Tell the component the host and port for the FeedServer through which it can connect a local eater to a remote feeder to eat the given fullFeedId.

Called on by the manager-side ComponentAvatar.

connectEater(self, feedId)

source code 

Actually eat the given feed. Used on initial connection, and for reconnecting.

remote_feedTo(self, componentId, feedId, host, port)

source code 

Tell the component to feed the given feed to the receiving component accessible through the FeedServer on the given host and port.

Called on by the manager-side ComponentAvatar.

remote_provideMasterClock(self, port)

source code 

Tells the component to start providing a master clock on the given UDP port. Can only be called if setup() has been called on the component.

The IP address returned is the local IP the clock is listening on.

Returns: tuple of (str, int, long)
(ip, port, base_time)

remote_effect(self, effectName, methodName, *args, **kwargs)

source code 

Invoke the given methodName on the given effectName in this component. The effect should implement effect_(methodName) to receive the call.


Class Variable Details [hide private]

__implemented__

Value:
<implementedBy flumotion.component.feedcomponent.FeedComponentMedium>

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x8fcaecc>