Trees | Index | Help |
---|
Package flumotion :: Package manager :: Module worker :: Class WorkerAvatar |
|
Loggable
--+ |Avatar
--+ | | |Loggable
--+ | | |Avatar
--+ | | |PingableAvatar
--+ |ManagerAvatar
--+ | WorkerAvatar
Method Summary | |
---|---|
attached(self,
*args,
**kwargs)
| |
Create a component of the given type with the given nice level. | |
Tell the avatar that the peer's client referenced by the mind has detached. | |
Get a list of components that the worker is running. | |
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 | |
| |
Disconnect the remote PB client. | |
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, and log calling and returning nicely. | |
Authenticate the given keycard. | |
list of (str, str) tuples of (bundleName, md5sum) |
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. |
twisted.internet.defer.Deferred firing list of
str
|
Get the keycard classes the manager's bouncer can authenticate. |
| |
| |
Inherited from PingableAvatar | |
| |
Tell the avatar that the given mind has been attached. | |
| |
| |
| |
Inherited from Avatar | |
Call the given remote method, and log calling and returning nicely. | |
| |
Inherited from Loggable | |
Log a debug message. | |
dict |
Log a message at the given level, with the possibility of going higher up in the stack. |
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 | |
---|---|
int | feedServerPort : TCP port the feed server is listening on |
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 | |
str | remoteLogName : name to use to log the other side of the connection |
Inherited from PingableAvatar | |
float |
_pingCheckInterval = 12.5 |
Inherited from Avatar | |
Implements |
__implemented__ = <implementedBy twisted.spread.pb.Avata...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Method Details |
---|
createComponent(self, avatarId, type, nice)Create a component of the given type with the given nice level.
|
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
|
getComponents(self)Get a list of components that the worker is running.
|
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.
|
Instance Variable Details |
---|
feedServerPortTCP port the feed server is listening on
|
Class Variable Details |
---|
logCategoryImplementors can provide a category to log their messages under.
|
_portSet
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Apr 14 13:20:43 2007 | http://epydoc.sf.net |