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

Class JobHeaven

             Loggable --+
                        |
Jellyable --+           |
            |           |
 Serializable --+       |
                |       |
    Referenceable --+   |
                    |   |
                 Root --+
                        |
                       JobHeaven


I am similar to but not quite the same as a manager-side Heaven. I manage avatars inside the worker for job processes spawned by the worker.
Method Summary
  __init__(self, brain, feederports)
  createAvatar(self, avatarId)
flumotion.common.keycards.Keycard getKeycard(self)
Gets the keycard that the worker used to log in to the manager.
str getWorkerName(self)
Gets the name of the worker that spawns the process.
  shutdown(self)
    Inherited from Root
  rootObject(self, broker)
A pb.BrokerFactory is requesting to publish me as a root object.
    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.

Class Variable Summary
str logCategory: Implementors can provide a category to log their messages under.
    Inherited from Root
tuple __implements__ = (<class 'twisted.spread.flavors.IPBRoot...
    Inherited from Referenceable
NoneType perspective = None                                                                  

Method Details

getKeycard(self)

Gets the keycard that the worker used to log in to the manager.
Returns:
flumotion.common.keycards.Keycard

getWorkerName(self)

Gets the name of the worker that spawns the process.
Returns:
str

Class Variable Details

logCategory

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

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net