Package flumotion :: Package worker :: Module worker :: Class WorkerMedium
[show private | hide private]
[frames | no frames]

Class WorkerMedium

         Loggable --+    
                    |    
Jellyable --+       |    
            |       |    
 Serializable --+   |    
                |   |    
    Referenceable --+    
                    |    
           BaseMedium --+
                        |
                       WorkerMedium


I am a medium interfacing with the manager-side WorkerAvatar.
Method Summary
  __init__(self, brain, ports)
twisted.internet.defer.Deferred loadModule(self, moduleName)
Load the given module name.
list of str remote_checkElements(self, elementNames)
Checks if one or more GStreamer elements are present and can be instantiated.
  remote_create(self, *args, **kwargs)
list of int remote_getPorts(self)
Gets the range of feed ports that this worker was configured to use.
  remote_runFunction(self, *args, **kwargs)
    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.worker.worker...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
WorkerBrain brain = None                                                                  
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, brain, ports)
(Constructor)

Parameters:
brain
           (type=WorkerBrain)

loadModule(self, moduleName)

Load the given module name.
Returns:
a deferred firing the module
           (type=twisted.internet.defer.Deferred)

remote_checkElements(self, elementNames)

Checks if one or more GStreamer elements are present and can be instantiated.
Parameters:
elementNames - names of the Gstreamer elements
           (type=list of str)
Returns:
a list of instantiatable element names
           (type=list of str)

remote_getPorts(self)

Gets the range of feed ports that this worker was configured to use.
Returns:
list of ports
           (type=list of int)

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy flumotion.worker.worker.WorkerMedium>                   

__provides__

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

brain

Type:
WorkerBrain
Value:
None                                                                  

logCategory

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

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