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

Class BaseComponentMedium

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

Known Subclasses:
FeedComponentMedium

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)
  callRemote(self, name, *args, **kwargs)
Return a deferred
  callRemoteErrback(self, failure, name)
  getIP(self)
Return our own IP as seen from the manager.
  hasRemoteReference(self)
  remote_callMethod(self, methodName, *args, **kwargs)
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_reloadComponent(self)
Reload modules in the component.
  remote_start(self, *args, **kwargs)
  remote_stop(self)
  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.IC...
str logCategory: Implementors can provide a category to log their messages under.
    Inherited from Referenceable
NoneType perspective = None                                                                  

Method Details

__init__(self, component)
(Constructor)

Parameters:
component - flumotion.component.component.BaseComponent

callRemote(self, name, *args, **kwargs)

Returns:
a deferred

getIP(self)

Return our own IP as seen from the manager.

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