Package flumotion :: Package common :: Module medium :: Class BaseMedium
[show private | hide private]
[frames | no frames]

Class BaseMedium

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

Known Subclasses:
AdminModel, BaseComponentMedium, JobMedium, WorkerMedium

I am a base interface for PB clients interfacing with PB server-side avatars. Used by admin/worker/component to talk to manager's vishnu, and by job to talk to worker's brain.
Method Summary
  callRemote(self, name, *args, **kwargs)
Call the given method with the given arguments remotely on the server-side avatar.
  hasRemoteReference(self)
Does the medium have a remote reference to a server-side avatar ?
  setRemoteReference(self, remoteReference)
Set the given remoteReference as the reference to the server-side avatar.
    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.

Instance Variable Summary
NoneType bundleLoader: flumotion.common.bundleclient.BundleLoader
  remoteReference: twisted.spread.pb.RemoteReference

Class Variable Summary
Implements __implemented__ = <implementedBy flumotion.common.medium...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
str logCategory: Implementors can provide a category to log their messages under.
NoneType remote = None                                                                  
    Inherited from Referenceable
NoneType perspective = None                                                                  
    Inherited from Jellyable
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Method Details

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

Call the given method with the given arguments remotely on the server-side avatar.

Gets serialized to server-side perspective_ methods.

hasRemoteReference(self)

Does the medium have a remote reference to a server-side avatar ?

setRemoteReference(self, remoteReference)

Set the given remoteReference as the reference to the server-side avatar.
Parameters:
remoteReference - twisted.spread.pb.RemoteReference

Instance Variable Details

bundleLoader

flumotion.common.bundleclient.BundleLoader
Type:
NoneType
Value:
None                                                                  

remoteReference

twisted.spread.pb.RemoteReference

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy flumotion.common.medium.BaseMedium>                     

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x711ac130>       

logCategory

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

remote

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Sun Oct 22 03:16:43 2006 http://epydoc.sf.net