Package flumotion :: Package worker :: Module feed :: Class FeedAvatar
[show private | hide private]
[frames | no frames]

Class FeedAvatar

  Avatar --+    
           |    
Loggable --+    
           |    
      Avatar --+
               |
              FeedAvatar


I am an avatar in a FeedServer for components that log in and request to eat from or feed to one of my components.

My mind is a reference to a FeedMedium
Method Summary
  __init__(self, feedServerParent, avatarId)
  attached(self, mind)
  detached(self)
  perspective_receiveFeed(self, componentId, feedId)
Called when the PB client wants to send the given feedId to the given component
  perspective_sendFeed(self, fullFeedId)
Called when the PB client wants us to send them the given feed.
    Inherited from Avatar
  disconnect(self)
Disconnect the remote PB client.
  mindCallRemote(self, name, *args, **kwargs)
Call the given remote method, and log calling and returning nicely.
  mindCallRemoteLogging(self, level, stackDepth, name, *args, **kwargs)
Call the given remote method, and log calling and returning nicely.
  perspectiveMessageReceived(self, broker, message, args, kwargs)
  setMind(self, mind)
Tell the avatar that the given mind has been attached.
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
dict doLog(self, level, where, format, *args, **kwargs)
Log a message at the given level, with the possibility of going higher up in the stack.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, *args)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure, swallow)
Log a warning about a Failure.

Class Variable Summary
str logCategory: Implementors can provide a category to log their messages under.
str remoteLogName: name to use to log the other side of the connection
    Inherited from Avatar
Implements __implemented__ = <implementedBy twisted.spread.pb.Avata...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...

Method Details

__init__(self, feedServerParent, avatarId)
(Constructor)

Parameters:
feedServerParent - the parent of the feed server
           (type=implementor of interfaces.IFeedServerParent)
Overrides:
flumotion.twisted.pb.Avatar.__init__

perspective_receiveFeed(self, componentId, feedId)

Called when the PB client wants to send the given feedId to the given component

perspective_sendFeed(self, fullFeedId)

Called when the PB client wants us to send them the given feed.

Class Variable Details

logCategory

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

remoteLogName

name to use to log the other side of the connection
Type:
str
Value:
'feedmedium'                                                           

Generated by Epydoc 2.1 on Fri Feb 2 11:29:21 2007 http://epydoc.sf.net