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

Class JobAvatar

  Avatar --+
           |
Loggable --+
           |
          JobAvatar


I am an avatar for the job living in the worker.
Method Summary
  __init__(self, heaven, avatarId)
  attached(self, mind)
boolean hasRemoteReference(self)
Check if the avatar has a remote reference to the peer.
  logout(self)
  remote_ready(self)
  stop(self)
returns: a deferred marking completed stop.
    Inherited from Avatar
  perspectiveMessageReceived(self, broker, message, args, kw)
This method is called when a network message is received.
    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
str logCategory: Implementors can provide a category to log their messages under.

Method Details

__init__(self, heaven, avatarId)
(Constructor)

Parameters:
heaven
           (type=flumotion.worker.worker.JobHeaven)
avatarId
           (type=string)

attached(self, mind)

Parameters:
mind - reference to the job's JobMedium on which we can call
           (type=

twisted.spread.pb.RemoteReference

I am scheduled from the dispatcher's requestAvatar method.)

hasRemoteReference(self)

Check if the avatar has a remote reference to the peer.
Returns:
boolean

stop(self)

returns: a deferred marking completed stop.

Class Variable Details

logCategory

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

Generated by Epydoc 2.1 on Wed Feb 16 07:22:59 2005 http://epydoc.sf.net