Home | Trees | Index | Help |
|
---|
Package twisted :: Package sibling :: Module motherserv :: Class MotherService |
|
Perspective
--+ |Perspective
--+ |Accessor
--+ | | |Versioned
--+ | | |ApplicationService
--+ | | |Service
--+ | | |Service
--+ | MotherService
A `mother' object, managing many sibling-servers.
I maintain a list of all "sibling" servers who are connected, so that all servers can connect to each other. I also negotiate which distributed objects are owned by which sibling servers, so that if any sibling-server needs to locate an object it can be made available.Method Summary | |
---|---|
__init__(self,
sharedSecret,
serviceName,
application)
| |
_cbLoadedResource(self,
result,
resourceType,
resourceName,
host,
port,
siblingPerspective)
| |
detached(self,
client,
identity)
| |
Request a sibling-server to load a resource. | |
Use to load a remote resource on a specified sibling service. | |
Call a remote method on a resources that is managed by the system. | |
called by sibling to set the host and port to publish for clients. | |
This is called by sibling services to unload a resource | |
Inherited from Service | |
Add a perspective to this Service. | |
Cache a perspective loaded from an external data source. | |
Create a perspective from self.perspectiveClass and add it to this service. | |
A hook to use if the identity is required when getting the perspective. | |
Return a perspective that represents a user for this service. | |
Return a Deferred which is a request for a perspective on this service. | |
The name of this service. | |
Get a string describing the type of this service. | |
Deferred Perspective |
Load a perspective from an external data-source. |
| |
Uncache a perspective loaded from an external data source. | |
Inherited from ApplicationService | |
Have my parent disown me. | |
| |
| |
| |
This call is made as a service starts up. | |
This call is made before shutdown. | |
| |
Inherited from Accessor | |
| |
| |
| |
*actually* del self.k without incurring side-effects. | |
*actually* set self.k to v without incurring side-effects. | |
Inherited from Versioned | |
Get state, adding a version number to it on its way out. | |
| |
(internal) Do a version upgrade. | |
Inherited from Perspective | |
An intermediary method to override. | |
See brokerAttached . | |
This method is called when a network message is received. | |
Inherited from Perspective | |
Called when a remote reference is 'attached' to me. | |
Request my identity. | |
Return the unique name of this perspective. | |
Return a service. | |
| |
Make an identity from this perspective with a password. | |
| |
Determine which identity I connect to. | |
| |
Change what service I am a part of. |
Class Variable Summary | |
---|---|
Inherited from Service | |
NoneType |
serviceName = None |
NoneType |
serviceType = None |
Inherited from ApplicationService | |
int |
persistenceVersion = 1 |
NoneType |
serviceParent = None |
int |
serviceRunning = 0 |
Inherited from Versioned | |
tuple |
persistenceForgets = ()
|
Inherited from Perspective | |
tuple |
__implements__ = (<class twisted.cred.perspective.IPersp...
|
int |
_attachedCount = 0 |
int |
_service_cached = 0 |
Method Details |
---|
loadRemoteResource(self, resourceType, resourceName, *args)Request a sibling-server to load a resource. Return a Deferred which will fire with (data, host, port, sibling), that will describe where and how a resource can be located. |
loadRemoteResourceFor(self, siblingPerspective, resourceType, resourceName, *args)Use to load a remote resource on a specified sibling service. Dont load it if already loaded on a sibling. |
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 sibling to set the host and port to publish for clients. |
perspective_unloadResource(self, resourceType, resourceName)This is called by sibling services to unload a resource |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat Sep 13 04:20:53 2003 | http://epydoc.sf.net |