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

Class WorkerMedium

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


I am a medium interfacing with the manager-side WorkerAvatar.
Method Summary
  __init__(self, brain)
  cb_processFailed(self, *args)
  cb_processFinished(self, *args)
  hasRemoteReference(self)
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)
  remote_start(self, avatarId, type, config)
Start a component of the given type with the given config.
  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.

Class Variable Summary
tuple __implements__ = (<class 'flumotion.common.interfaces.IW...
str logCategory: Implementors can provide a category to log their messages under.
    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_start(self, avatarId, type, config)

Start a component of the given type with the given config.
Parameters:
avatarId - type of the component to start
           (type=string)
type - type of the component to start
           (type=string)
config - a configuration dictionary for the component
           (type=dict)
Returns:
a deferred fired when the process has started

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 Wed Feb 16 07:22:59 2005 http://epydoc.sf.net