Package flumotion :: Package component :: Module feedcomponent :: Class FeedComponentMedium
[show private | hide private]
[frames | no frames]

Class FeedComponentMedium

         Loggable --+        
                    |        
Jellyable --+       |        
            |       |        
 Serializable --+   |        
                |   |        
    Referenceable --+        
                    |        
           BaseMedium --+    
                        |    
      BaseComponentMedium --+
                            |
                           FeedComponentMedium


I am a component-side medium for a FeedComponent to interface with the manager-side ComponentAvatar.
Method Summary
  __init__(self, component)
  remote_effect(self, effectName, methodName, *args, **kwargs)
Invoke the given methodName on the given effectName in this component.
  remote_getElementProperty(self, elementName, property)
tuple of (str, int, long) remote_provideMasterClock(self, port)
Tells the component to start providing a master clock on the given UDP port.
  remote_setElementProperty(self, elementName, property, value)
    Inherited from BaseComponentMedium
  getIP(self)
Return the manager IP as seen by us.
  remote_callMethod(self, methodName, *args, **kwargs)
dict remote_getConfig(self)
Return the configuration of the component.
flumotion.common.planet.WorkerJobState remote_getState(self)
Return the state of the component, which will be serialized to a flumotion.common.planet.ManagerJobState object.
  remote_getUIState(self)
Get a WorkerComponentUIState containing details needed to present an admin-side UI state
  remote_reloadComponent(self)
Reload modules in the component.
  remote_setup(self, config)
Set up the component and the component's medium with the given config, in that order.
  remote_start(self, *args, **kwargs)
  remote_stop(self)
  setup(self, config)
    Inherited from BaseMedium
  callRemote(self, name, *args, **kwargs)
Call the given method with the given arguments remotely on the server-side avatar.
  hasRemoteReference(self)
Does the medium have a remote reference to a server-side avatar ?
  setRemoteReference(self, remoteReference)
Set the given remoteReference as the reference to the server-side avatar.
    Inherited from Referenceable
  jellyFor(self, jellier)
(internal)
  remoteMessageReceived(self, broker, message, args, kw)
A remote message has been received.
    Inherited from Serializable
  processUniqueID(self)
Return an ID which uniquely represents this object for this process.
    Inherited from Jellyable
  getStateFor(self, jellier)
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, message)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure)
Log a warning about a Failure.

Instance Variable Summary
    Inherited from BaseMedium
NoneType bundleLoader: flumotion.common.bundleclient.BundleLoader
  remoteReference: twisted.spread.pb.RemoteReference

Class Variable Summary
Implements __implemented__ = <implementedBy flumotion.component.fee...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
str logCategory: Implementors can provide a category to log their messages under.
    Inherited from BaseMedium
NoneType remote = None                                                                  
    Inherited from Referenceable
NoneType perspective = None                                                                  
    Inherited from Jellyable
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Method Details

__init__(self, component)
(Constructor)

Parameters:
component - flumotion.component.feedcomponent.FeedComponent
Overrides:
flumotion.component.component.BaseComponentMedium.__init__

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

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

remote_provideMasterClock(self, port)

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:
(ip, port, base_time)
           (type=tuple of (str, int, long))

Class Variable Details

__implemented__

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

__provides__

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

logCategory

Implementors can provide a category to log their messages under.
Type:
str
Value:
'basecomponentmedium'                                                  

Generated by Epydoc 2.1 on Sun Oct 22 03:16:42 2006 http://epydoc.sf.net