Trees | Index | Help |
---|
Package flumotion :: Package manager :: Module base :: Class ManagerAvatar |
|
Avatar
--+ |Loggable
--+ | ManagerAvatar
AdminAvatar
,
ComponentAvatar
,
WorkerAvatar
Method Summary | |
---|---|
| |
Tell the avatar that the given mind has been attached. | |
Tell the avatar that the peer's client referenced by the mind has detached. | |
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 | |
---|---|
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 | |
---|---|
Inherited from Loggable | |
str |
logCategory : Implementors can provide a category to log their messages under. |
Method Details |
---|
__init__(self,
heaven,
avatarId)
|
attached(self, mind)Tell the avatar that the given mind has been attached. This gives the avatar a way to call remotely to the client that requested this avatar. This is scheduled by the portal after the client has logged in.
|
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
|
getClientAddress(self)Get the IPv4 address of the machine the PB client is connecting from, as seen from the avatar.
|
hasRemoteReference(self)Check if the avatar has a remote reference to the peer.
|
mindCallRemote(self, name, *args, **kwargs)Call the given remote method.
|
perspective_getBundleSums(self, bundleName=None, fileName=None, moduleName=None)Get a list of (bundleName, md5sum) of all dependency bundles, starting with this bundle, in the correct order. One of bundleName, fileName, moduleName must be given.
|
perspective_getBundleSumsByFile(self, filename)Get a list of (bundleName, md5sum) of all dependency bundles, starting with this bundle, in the correct order.
|
perspective_getBundleZips(self, bundles)Get the zip files for the given list of bundles.
|
Instance Variable Details |
---|
avatarIdthe id for this avatar, unique inside the heaven
|
heaventhe heaven this avatar is part of |
minda remote reference to the client-side Medium
|
vishnuthe vishnu that manages this avatar's heaven |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Jan 25 09:31:10 2007 | http://epydoc.sf.net |