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

Class BaseComponentMedium

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

Known Subclasses:
FeedComponentMedium, BouncerMedium

I am a medium interfacing with a manager-side avatar. I implement a Referenceable for the manager's avatar to call on me. I have a remote reference to the manager's avatar to call upon.
Method Summary
  __init__(self, component)
  getIP(self)
Return our own IP as seen from the manager.
  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_start(self, *args, **kwargs)
  remote_stop(self)
  _destroyCallback(self, result)
  _reloaded(self)
    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.IC...
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

__init__(self, component)
(Constructor)

Parameters:
component - flumotion.component.component.BaseComponent

getIP(self)

Return our own IP as seen from the manager.

remote_getConfig(self)

Return the configuration of the component.
Returns:
component's current configuration
           (type=dict)

remote_getState(self)

Return the state of the component, which will be serialized to a flumotion.common.planet.ManagerJobState object.
Returns:
state of component
           (type=flumotion.common.planet.WorkerJobState)

remote_getUIState(self)

Get a WorkerComponentUIState containing details needed to present an admin-side UI state

remote_reloadComponent(self)

Reload modules in the component.

Class Variable Details

__implements__

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

logCategory

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

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