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)
  cb_processFailed(self, *args)
  cb_processFinished(self, *args)
list of strings remote_checkElements(self, elementNames)
Checks if one or more GStreamer elements are present and can be instantiated.
  remote_runProc(self, module, function, *args, **kwargs)
Runs the given function in the given module with the given arguments.
  remote_start(self, *args, **kwargs)
    Inherited from BaseMedium
  callRemote(self, name, *args, **kwargs)
  hasRemoteReference(self)
  loadModule(self, moduleName)
  run_bundled_proc(self, *args, **kwargs)
  setRemoteReference(self, remoteReference)
    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.

Class Variable Summary
tuple __implements__ = (<class 'flumotion.common.interfaces.IW...
str logCategory: Implementors can provide a category to log their messages under.
    Inherited from BaseMedium
NoneType bundleLoader = None                                                                  
NoneType remote = None                                                                  
    Inherited from Referenceable
NoneType perspective = None                                                                  

Method Details

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 strings)
Returns:
a list of instantiatable element names
           (type=list of strings)

remote_runProc(self, module, function, *args, **kwargs)

Runs the given function in the given module with the given arguments.
Parameters:
module - module the function lives in
           (type=string)
function - function to run
           (type=string)
Returns:
the return value of the given function in the module.

Class Variable Details

__implements__

Type:
tuple
Value:
(<class 'flumotion.common.interfaces.IWorkerMedium'>,)                 

logCategory

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

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net