Trees | Index | Help |
---|
Package flumotion :: Package manager :: Module admin :: Class AdminAvatar |
|
Avatar
--+ |Loggable
--+ |ManagerAvatar
--+ | AdminAvatar
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. | |
list of planet.ManagerComponentState
|
Return all component states logged in to the manager. |
perspective_cleanComponents(self)
| |
twisted.internet.defer.Deferred
|
Call a method on the given component on behalf of an admin client. |
Restart the given component. | |
Start the given component. | |
Stop the given component. | |
perspective_deleteFlow(self,
flowName)
| |
str |
Get the configuration of the manager as an XML string. |
Get the entry point for a piece of bundled code by the type. | |
flumotion.common.planet.ManagerPlanetState
|
Get the planet state. |
flumotion.common.worker.ManagerWorkerHeavenState
|
Get the worker heaven state. |
Load the given XML configuration into the manager. | |
Reload modules in the given component. | |
Reload modules in the manager. | |
Shut down the manager. | |
Call a remote method on the worker. | |
Send the given log message to the peer. | |
_reloaded(self)
| |
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. |
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 |
---|
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
|
getComponentStates(self)Return all component states logged in to the manager. The list gets serialized to a list offlumotion.common.planet.AdminComponentState
|
perspective_componentCallRemote(self, componentState, methodName, *args, **kwargs)Call a method on the given component on behalf of an admin client.
|
perspective_componentRestart(self, componentState)Restart the given component.
|
perspective_componentStart(self, componentState)Start the given component. The component should be sleeping before this.
|
perspective_componentStop(self, componentState)Stop the given component. If the component was sad, we clear its sad state as well, since the stop was explicitly requested by the admin.
|
perspective_getConfiguration(self)Get the configuration of the manager as an XML string.
|
perspective_getEntryByType(self, componentState, type)Get the entry point for a piece of bundled code by the type. Returns: a (filename, methodName) tuple, or raises a Failure |
perspective_getPlanetState(self)Get the planet state. |
perspective_getWorkerHeavenState(self)Get the worker heaven state. |
perspective_loadConfiguration(self, xml)Load the given XML configuration into the manager.
|
perspective_reloadComponent(self, componentState)Reload modules in the given component.
|
perspective_reloadManager(self)Reload modules in the manager. |
perspective_shutdown(self)Shut down the manager.
|
perspective_workerCallRemote(self, workerName, methodName, *args, **kwargs)Call a remote method on the worker. This is used so that admin clients can call methods from the interface to the worker.
|
sendLog(self, category, type, message)Send the given log message to the peer. |
Class Variable Details |
---|
logCategoryImplementors can provide a category to log their messages under.
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Oct 22 03:16:45 2006 | http://epydoc.sf.net |