Trees | Index | Help |
---|
Package flumotion :: Package manager :: Module base :: Class ManagerAvatar |
|
Loggable
--+ |Avatar
--+ | | |Loggable
--+ | | |Avatar
--+ | | |PingableAvatar
--+ | 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. | |
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. |
timeoutDisconnect(self)
| |
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 | |
---|---|
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 | remoteLogName : name to use to log the other side of the connection |
Inherited from Avatar | |
str |
logCategory : Implementors can provide a category to log their messages under. |
Inherited from Avatar | |
Implements |
__implemented__ = <implementedBy twisted.spread.pb.Avata...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Method Details |
---|
__init__(self,
heaven,
avatarId,
remoteIdentity)
|
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
|
disconnect(self)Disconnect the remote PB client. If we are already disconnected, do nothing.
|
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, and log calling and returning nicely.
|
perspective_authenticate(self, bouncerName, keycard)Authenticate the given keycard. If no bouncerName given, authenticate against the manager's bouncer. If a bouncerName is given, authenticate against the given bouncer in the atmosphere.
|
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. Any of bundleName, fileName, moduleName may 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.
|
perspective_getKeycardClasses(self)Get the keycard classes the manager's bouncer can authenticate.
|
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 |
Class Variable Details |
---|
remoteLogNamename to use to log the other side of the connection
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Apr 14 13:11:55 2007 | http://epydoc.sf.net |