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 --+                
                                          |                
                extern.log.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_attachPadMonitorToFeeder(self, feederName) source code
 
remote_setGstDebug(self, debug)
Sets the GStreamer debugging levels based on the passed debug string.
source code
 
remote_eatFrom(self, eaterAlias, 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
 
_getAuthenticatorForFeed(self, eaterAliasOrFeedName) source code
 
connectEater(self, eaterAlias)
Connect one of the medium's component's eaters to a remote feed.
source code
 
remote_feedTo(self, feederName, fullFeedId, 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
 
connectFeeder(self, feederName, fullFeedId)
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
tuple of (str, int, long)
remote_getMasterClockInfo(self)
Return the clock master info created by a previous call to provideMasterClock.
source code
 
remote_setMasterClock(self, ip, port, base_time) 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_getConfig, remote_getState, remote_getUIState, remote_getVersions, remote_reloadComponent, remote_setFluDebug, remote_stop, setAuthenticator, setRemoteReference, setup

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

Inherited from common.medium.BaseMedium: callRemote, callRemoteLogging, getBundledFunction, 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 extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

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_setGstDebug(self, debug)

source code 

Sets the GStreamer debugging levels based on the passed debug string.

Since: 0.4.2

remote_eatFrom(self, eaterAlias, 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, eaterAlias)

source code 

Connect one of the medium's component's eaters to a remote feed. Called by the component, both on initial connection and for reconnecting.

Returns:
(deferred, cancel) pair, where cancel is a thunk that you can call to cancel any pending connection attempt.

remote_feedTo(self, feederName, fullFeedId, 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.

connectFeeder(self, feederName, fullFeedId)

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_getMasterClockInfo(self)

source code 

Return the clock master info created by a previous call to provideMasterClock.

Returns: tuple of (str, int, long)
(ip, port, base_time)
Overrides: component.BaseComponentMedium.remote_getMasterClockInfo

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 0x9a24a0c>