Trees | Index | Help |
---|
Package flumotion :: Package manager :: Module worker :: Class WorkerAvatar |
|
Avatar
--+ |Loggable
--+ |ManagerAvatar
--+ | WorkerAvatar
Method Summary | |
---|---|
attached(self,
*args,
**kwargs)
| |
Create a component of the given type with the given config. | |
Tell the avatar that the peer's client referenced by the mind has detached. | |
getName(self)
| |
Called by the worker to tell the manager to add a given message to the given component. | |
Release the given list of ports on the worker. | |
Reserve the given number of ports on the worker. | |
Inherited from ManagerAvatar | |
| |
str or None |
Get the IPv4 address of the machine the PB client is connecting from, as seen from the avatar. |
bool |
Check if the avatar has a remote reference to the peer. |
Call the given remote method. | |
list of tuple of (str, str) |
Get a list of (bundleName, md5sum) of all dependency bundles, starting with this bundle, in the correct order. |
list of (str, str) tuples |
Get a list of (bundleName, md5sum) of all dependency bundles, starting with this bundle, in the correct order. |
dict of str -> str |
Get the zip files for the given list of bundles. |
| |
Inherited from Avatar | |
This method is called when a network message is received. | |
Inherited from Loggable | |
Log a debug message. | |
Log an error. | |
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 | |
---|---|
Inherited from ManagerAvatar | |
str | avatarId : the id for this avatar, unique inside the heaven |
flumotion.manager.base.ManagerHeaven |
heaven : the heaven this avatar is part of |
twisted.spread.pb.RemoteReference |
mind : a remote reference to the client-side Medium |
flumotion.manager.manager.Vishnu |
vishnu : the vishnu that manages this avatar's heaven |
Class Variable Summary | |
---|---|
str |
logCategory : Implementors can provide a category to log their messages under. |
NoneType |
portset = None |
Inherited from ManagerAvatar | |
Implements |
__implemented__ = <implementedBy flumotion.manager.base....
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Inherited from Avatar | |
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
Method Details |
---|
createComponent(self, avatarId, type, config)Create a component of the given type with the given config.
|
detached(self, mind)Tell the avatar that the peer's client referenced by the mind has detached. Called through the manager's PB logout trigger callingflumotion.manager.manager.Dispatcher.removeAvatar
|
perspective_componentAddMessage(self, avatarId, message)Called by the worker to tell the manager to add a given message to the given component. Useful in cases where the component can't report messages itself, for example because it crashed.
|
releasePorts(self, ports)Release the given list of ports on the worker.
|
reservePorts(self, numPorts)Reserve the given number of ports on the worker.
|
Class Variable Details |
---|
logCategoryImplementors can provide a category to log their messages under.
|
portset
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Oct 22 03:16:48 2006 | http://epydoc.sf.net |