Trees | Index | Help |
---|
Package flumotion :: Package manager :: Module component :: Class ComponentAvatar |
|
Loggable
--+ |Avatar
--+ | | |Loggable
--+ | | |Avatar
--+ | | |PingableAvatar
--+ |ManagerAvatar
--+ | ComponentAvatar
I am a Manager-side avatar for a component. I live in the ComponentHeaven
.
Method Summary | |
---|---|
__init__(self,
*args,
**kwargs)
| |
__repr__(self)
| |
Tell the avatar that the given mind has been attached. | |
Authenticate the given keycard. | |
Clean up when detaching. | |
Tell the avatar that the peer's client referenced by the mind has detached. | |
eatFrom(self,
fullFeedId,
host,
port)
| |
Expire a keycard issued to this component because the bouncer decided to. | |
feedTo(self,
componentId,
feedId,
host,
port)
| |
list of str |
Get a list of feedId s for feeds this component wants to
eat from. |
Get a property of an element. | |
list of str |
Get a list of feedId s that this component has feeders
for. |
int |
Returns the port on which a feed server for this component is listening on. |
str |
Get the name of the component. |
str |
Get the name of the component's parent. |
int |
Return the PID of the component. |
str |
Get the IP address of the manager as seen by the component. |
str |
Get the component type name of the component. |
str |
Return the name of the worker. |
parseEaterConfig(self,
eater_config)
| |
parseFeederConfig(self,
feeder_config)
| |
Called by a component to tell the manager that it's shutting down cleanly (and thus should go to sleeping, rather than lost or sad) | |
perspective_error(self,
element,
error)
| |
Expire a keycard (and thus the requester's connection) issued to the given requester. | |
Called by the component to tell the manager that a given feed is ready or not. | |
Remove a keycard on the given bouncer on behalf of a component's medium. | |
Request reservation a number of ports on a particular worker. | |
twisted.internet.defer.Deferred
|
Tell the component to reload itself. |
Remove a keycard managed by this bouncer because the requester has gone. | |
Set a property on an element. | |
Set up the component with the given config. | |
start(self,
*args,
**kwargs)
| |
stateSet(self,
state,
key,
value)
| |
Tell the avatar to stop the component. | |
_addMessage(self,
message)
| |
_getMoodValue(self)
| |
_mindErrback(self,
failure,
*ignores)
| |
_mindPropertyErrback(self,
failure)
| |
_setMood(self,
mood)
| |
_setMoodValue(self,
moodValue)
| |
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 | |
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 | avatarId : the componentId |
flumotion.common.planet.ManagerComponentState |
componentState : component state of this avatar's component |
flumotion.common.planet.ManagerJobState |
jobState : job state of this avatar's component |
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.
|
authenticate(self, keycard)Authenticate the given keycard. Gets proxied toflumotion.component.bouncers.bouncer.BouncerMedium.remote_authenticate
The component should be a subclass of flumotion.component.bouncers.bouncer.Bouncer
|
cleanup(self)Clean up when detaching. |
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
|
expireKeycard(self, keycardId)Expire a keycard issued to this component because the bouncer decided to.
|
getEaters(self)Get a list offeedId s for feeds this component wants to
eat from.
|
getElementProperty(self, element, property)Get a property of an element.
|
getFeeders(self)Get a list of
|
getFeedServerPort(self)Returns the port on which a feed server for this component is listening on.
|
getName(self)Get the name of the component.
|
getParentName(self)Get the name of the component's parent.
|
getPid(self)Return the PID of the component.
|
getRemoteManagerIP(self)Get the IP address of the manager as seen by the component.
|
getType(self)Get the component type name of the component.
|
getWorkerName(self)Return the name of the worker.
|
perspective_cleanShutdown(self)Called by a component to tell the manager that it's shutting down cleanly (and thus should go to sleeping, rather than lost or sad) |
perspective_expireKeycard(self, requesterId, keycardId)Expire a keycard (and thus the requester's connection) issued to the given requester. This is called by the bouncer component that authenticated the keycard.
|
perspective_feedReady(self, feedName, isReady)Called by the component to tell the manager that a given feed is ready or not. Will notify other components depending on this feeder, starting them if all of their dependencies are ready.
|
perspective_removeKeycardId(self, bouncerName, keycardId)Remove a keycard on the given bouncer on behalf of a component's medium. This is requested by a component that created the keycard.
|
perspective_reservePortsOnWorker(self, workerName, numberOfPorts)Request reservation a number of ports on a particular worker. This can be called from a job if it needs some ports itself.
|
reloadComponent(self)Tell the component to reload itself.
|
removeKeycardId(self, keycardId)Remove a keycard managed by this bouncer because the requester has gone.
|
setElementProperty(self, element, property, value)Set a property on an element.
|
setup(self, conf)Set up the component with the given config. Proxies toflumotion.component.component.BaseComponentMedium.remote_setup
|
stop(self)Tell the avatar to stop the component. |
Class Variable Details |
---|
avatarIdthecomponentId
|
componentStatecomponent state of this avatar's component |
jobStatejob state of this avatar's component |
logCategoryImplementors can provide a category to log their messages under.
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Apr 14 13:16:51 2007 | http://epydoc.sf.net |