Home | Trees | Index | Help |
---|
Package twisted :: Package sister :: Module parentserv :: Class MotherService |
|
OriginalAccessor
--+ |Versioned
--+ |ApplicationService
--+ |Service
--+ |Service
--+ |Perspective
--+ | | |Perspective
--+ | MotherService
A `mother' object, managing many sister-servers.
I maintain a list of all "sister" servers who are connected, so that all servers can connect to each other. I also negotiate which distributed objects are owned by which sister servers, so that if any sister-server needs to locate an object it can be made available.Method Summary | |
---|---|
__init__(self,
sharedSecret,
serviceName,
application)
| |
(inherited from OriginalAccessor )
| |
(inherited from OriginalAccessor )
| |
Get state, adding a version number to it on its way out. (inherited from Versioned )
| |
(inherited from OriginalAccessor )
| |
(inherited from Versioned )
| |
Add a perspective to this Service. (inherited from Service )
| |
Called when a remote reference is 'attached' to me. (inherited from Perspective )
| |
An intermediary method to override. (inherited from Perspective )
| |
See brokerAttached . (inherited from Perspective )
| |
Cache a perspective loaded from an external data source. (inherited from Service )
| |
Create a perspective from self.perspectiveClass and add it to this service. (inherited from Service )
| |
detached(self,
client,
identity)
| |
Have my parent disown me. (inherited from ApplicationService )
| |
(inherited from ApplicationService )
| |
Request my identity. (inherited from Perspective )
| |
A hook to use if the identity is required when getting the perspective. (inherited from Service )
| |
Return the unique name of this perspective. (inherited from Perspective )
| |
Return a perspective that represents a user for this service. (inherited from Service )
| |
Return a Deferred which is a request for a perspective on this service. (inherited from Service )
| |
Return a service. (inherited from Perspective )
| |
The name of this service. (inherited from Service )
| |
Get a string describing the type of this service. (inherited from Service )
| |
Load a perspective from an external data-source. (inherited from Service )
| |
Request a sister-server to load a resource. | |
Use to load a remote resource on a specified sister service. | |
Make an identity from this perspective with a password. (inherited from Perspective )
| |
Call a remote method on a resources that is managed by the system. | |
called by sister to set the host and port to publish for clients. | |
This is called by sister services to unload a resource | |
This method is called when a network message is received. (inherited from Perspective )
| |
*actually* del self.k without incurring side-effects. (inherited from OriginalAccessor )
| |
*actually* set self.k to v without incurring side-effects. (inherited from OriginalAccessor )
| |
(inherited from ApplicationService )
| |
(inherited from ApplicationService )
| |
Determine which identity I connect to. (inherited from Perspective )
| |
(inherited from Perspective )
| |
Change what service I am a part of. (inherited from Perspective )
| |
Set my parent, which must be a service collection of some kind. (inherited from ApplicationService )
| |
This call is made as a service starts up. (inherited from ApplicationService )
| |
This call is made before shutdown. (inherited from ApplicationService )
| |
Uncache a perspective loaded from an external data source. (inherited from Service )
| |
(inherited from ApplicationService )
| |
(internal) Do a version upgrade. (inherited from Versioned )
| |
_cbLoadedResource(self,
ticket,
resourceType,
resourceName,
host,
port,
sisterPerspective)
|
Method Details |
---|
loadRemoteResource(self, resourceType, resourceName, generateTicket, *args)Request a sister-server to load a resource. NOTE: caching of ticket resources could be an issue... do we cache tickets?? Return a Deferred which will fire with (ticket, host, port), that will describe where and how a resource can be located. |
loadRemoteResourceFor(self, sisterPerspective, resourceType, resourceName, generateTicket, *args)Use to load a remote resource on a specified sister service. Dont load it if already loaded on a sister. |
perspective_callDistributed(self, srcResourceType, srcResourceName, destResourceType, destResourceName, methodName, *args, **kw)Call a remote method on a resources that is managed by the system. |
perspective_publishIP(self, host, port, clientRef)called by sister to set the host and port to publish for clients. |
perspective_unloadResource(self, resourceType, resourceName)This is called by sister services to unload a resource |
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:28:47 2003 | http://epydoc.sf.net |