Trees | Index | Help |
---|
Package flumotion :: Package manager :: Module admin :: Class AdminAvatar |
|
Loggable
--+ |Avatar
--+ | | |Loggable
--+ | | |Avatar
--+ | | |PingableAvatar
--+ |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. | |
Delete a component from the manager. | |
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. | |
perspectiveMessageReceived(self,
broker,
message,
args,
kwargs)
| |
Send the given log message to the peer. | |
_reloaded(self)
| |
Opens a file that the flow should be written to. | |
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 | |
---|---|
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 | |
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 |
---|
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_deleteComponent(self, componentState)Delete a component from the manager. A component can only be deleted when it is sleeping or sad. It is the caller's job to ensure this is the case; calling this function on a running component will raise a ComponentBusyError.
|
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, saveAs=None)Load the given XML configuration into the manager. If the optional saveAs parameter is passed, the XML snippet will be saved to disk in the manager's flows directory.
|
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. |
_saveFlowFile(self, filename)Opens a file that the flow should be written to. Note that the returned file object might be an existing file, opened in append mode; if the loadConfiguration operation succeeds, the file should first be truncated before writing. |
Class Variable Details |
---|
logCategoryImplementors can provide a category to log their messages under.
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Fri Apr 6 10:13:43 2007 | http://epydoc.sf.net |