Trees | Index | Help |
---|
Package flumotion :: Package manager :: Module component :: Class ComponentAvatar |
|
Avatar
--+ |Loggable
--+ |ManagerAvatar
--+ | ComponentAvatar
Method Summary | |
---|---|
| |
__del__(self)
| |
__repr__(self)
| |
Tell the avatar that the given mind has been attached. | |
authenticate(self,
keycard)
| |
Clean up when detaching. | |
Tell the avatar that the peer's client referenced by the mind has detached. | |
Expire a keycard issued to this component because the bouncer decided to. | |
Get a list of feeder names feeding this component. | |
Get a property of an element. | |
Get a list of feeder names (componentName:feedName) in this component. | |
Returns the port this feed is being fed on. | |
getName(self)
| |
getParentName(self)
| |
getPid(self)
| |
getRemoteManagerIP(self)
| |
getType(self)
| |
Return the name of the worker. | |
perspective_adminCallRemote(self,
methodName,
*args,
**kwargs)
| |
Authenticate the given keycard using the given bouncer. | |
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. | |
perspective_heartbeat(self,
moodValue)
| |
Remove a keycard on the given bouncer on behalf of a component's medium. | |
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. | |
start(self,
*args,
**kwargs)
| |
stateAppend(self,
state,
key,
value)
| |
stateRemove(self,
state,
key,
value)
| |
stateSet(self,
state,
key,
value)
| |
Tell the avatar to stop the component. | |
_getMoodValue(self)
| |
_getState(self)
| |
Check if we received the heartbeat lately. | |
_mindErrback(self,
failure,
*ignores)
| |
_mindGetStateCallback(self,
state)
| |
_mindPipelineErrback(self,
failure)
| |
_mindPropertyErrback(self,
failure)
| |
_setMessage(self,
message)
| |
_setMood(self,
mood)
| |
_setMoodValue(self,
moodValue)
| |
Inherited from ManagerAvatar | |
Get the IPv4 address of the machine the client is connecting from. | |
boolean |
Check if the avatar has a remote reference to the peer. |
Call the given remote method. | |
list of (string, string) tuples of (bundleName, md5sum) |
Get a list of (bundleName, md5sum) of all dependency bundles, starting with this bundle, in the correct order. |
list of (string, string) tuples |
Get a list of (bundleName, md5sum) of all dependency bundles, starting with this bundle, in the correct order. |
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. |
Class Variable Summary | |
---|---|
MetaInterface |
__implements__ = flumotion.twisted.flavors.IStateListener |
str |
logCategory : Implementors can provide a category to log their messages under. |
float |
_heartbeatCheckInterval = 12.5 |
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.
|
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 of feeder names feeding this component. Returns: a list of eater names, or the empty list. |
getElementProperty(self, element, property)Get a property of an element.
|
getFeeders(self)Get a list of feeder names (componentName:feedName) in this component. Returns: a list of feeder names, or the empty list. |
getFeedPort(self, feedName)Returns the port this feed is being fed on. |
getWorkerName(self)Return the name of the worker. |
perspective_authenticate(self, bouncerName, keycard)Authenticate the given keycard using the given bouncer. The bouncer needs to be part of the atmosphere.
|
perspective_expireKeycard(self, requesterName, 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, port)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_removeKeycard(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.
|
reloadComponent(self)Tell the component to reload itself.
|
removeKeycard(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.
|
stop(self)Tell the avatar to stop the component. |
_heartbeatCheck(self)Check if we received the heartbeat lately. Set mood to LOST if not. |
Class Variable Details |
---|
logCategoryImplementors can provide a category to log their messages under.
|
_heartbeatCheckInterval
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 | http://epydoc.sf.net |