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

Class JobMedium

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


I am a medium between the job and the worker's job avatar. I live in the job process.
Method Summary
  __init__(self, options)
  remote_initial(self, host, port, transport)
  remote_start(self, avatarId, type, config, feedPorts)
I am called on by the worker's JobAvatar to start a component.
  remote_stop(self)
  shutdown(self)
Shut down the job process completely, cleaning up the component so the reactor can be left from.
  threads_init(self)
    Inherited from BaseMedium
  callRemote(self, name, *args, **kwargs)
  hasRemoteReference(self)
  load_module(self, modname)
  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.

Class Variable Summary
tuple __implements__ = (<class 'flumotion.common.interfaces.IJ...
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_start(self, avatarId, type, config, feedPorts)

I am called on by the worker's JobAvatar to start a component.
Parameters:
avatarId - avatarId for component to log in to manager
           (type=string)
type - type of component to start
           (type=string)
config - the configuration dictionary
           (type=dict)
feedPorts - feedName -> port
           (type=dict)

shutdown(self)

Shut down the job process completely, cleaning up the component so the reactor can be left from.

Class Variable Details

__implements__

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

logCategory

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

Generated by Epydoc 2.1 on Wed Jul 27 22:29:41 2005 http://epydoc.sf.net