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)
  getIP(self)
  hasRemoteReference(self)
  remote_callMethod(self, methodName, *args, **kwargs)
flumotion.common.component.JobComponentState remote_getState(self)
Return the state of the component, which will be serialized to a flumotion.common.component.ManagerComponentState object.
  remote_reloadComponent(self)
Reload modules in the component.
  remote_start(self, *args, **kwargs)
Tell the component to start.
  remote_stop(self)
Tell the component to stop.
  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

remote_getState(self)

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

remote_reloadComponent(self)

Reload modules in the component.

remote_start(self, *args, **kwargs)

Tell the component to start. This is called when all its dependencies are already started.

Extended by subclasses. Subclasses call this as the last method if the start is successful. Sets the mood to happy.

remote_stop(self)

Tell the component to stop. The connection to the manager will be closed. The job process will also finish.

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:
'basecomponentmedium'                                                  

Generated by Epydoc 2.1 on Fri Jan 21 09:59:45 2005 http://epydoc.sf.net