| Trees | Index | Help |
|---|
| Package flumotion :: Package worker :: Module worker :: Class WorkerBrain |
|
Loggable --+
|
WorkerBrain
| Method Summary | |
|---|---|
| |
callRemote(self,
methodName,
*args,
**kwargs)
| |
twisted.internet.defer.Deferred
|
Create and register a deferred for creating the given component. |
Notify the caller that a create has failed, and remove the create from the list of pending creates. | |
Check if a deferred create has been registered for the given avatarId. | |
Trigger a previously registered deferred for creating up the given component. | |
error(self,
message)
| |
Install our own signal handler for SIGTERM. | |
login(self,
keycard)
| |
Clean up after setup() | |
_setupJobServerFactory(self)
| |
_SIGTERMHandler(self,
signum,
frame)
| |
| Inherited from Loggable | |
Log a debug message. | |
Log an informational message. | |
Log a log message. | |
Overridable log function. | |
Overridable object name function. | |
Log a warning. | |
Log a warning about a Failure. | |
| Instance Variable Summary | |
|---|---|
JobHeaven |
jobHeaven: |
flumotion.common.keycards.Keycard |
keycard: the keycard the worker used to log in to the manager |
Kindergarten |
kindergarten: |
WorkerMedium |
medium: |
WorkerClientFactory |
workerClientFactory: |
| Class Variable Summary | |
|---|---|
str |
logCategory: Implementors can provide a category to log their messages under. |
| Method Details |
|---|
__init__(self,
options)
|
deferredCreate(self, avatarId)Create and register a deferred for creating the given component. This deferred will be fired when the JobAvatar has instructed the job to create the component.
|
deferredCreateFailed(self, avatarId, exception)Notify the caller that a create has failed, and remove the create from the list of pending creates. |
deferredCreateRegistered(self, avatarId)Check if a deferred create has been registered for the given avatarId. |
deferredCreateTrigger(self, avatarId)Trigger a previously registered deferred for creating up the given component. |
installSIGTERMHandler(self)Install our own signal handler for SIGTERM. This will call the currently installed one first, then shut down jobs. |
teardown(self)Clean up after setup()
|
| Instance Variable Details |
|---|
jobHeaven
|
keycardthe keycard the worker used to log in to the manager |
kindergarten
|
medium
|
workerClientFactory
|
| Class Variable Details |
|---|
logCategoryImplementors can provide a category to log their messages under.
|
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Jan 25 09:34:55 2007 | http://epydoc.sf.net |