Home | Trees | Index | Help |
---|
Package twisted :: Package sister :: Module sisterserv :: Class SisterService |
|
OriginalAccessor
--+ |Versioned
--+ |ApplicationService
--+ |Service
--+ |Service
--+ |Perspective
--+ | | |Perspective
--+ | SisterService
A 'sister' object, managed by a mother server
I am one of a set of sisters managed by a mother server. I use the mother server as a central manager of distributed objects, and as a mechanism for communicating to other sister servers.
Distributed login into me is handled by passing identity resources - which I have a special loader and authorizer for.Method Summary | |
---|---|
Initialize me. | |
(inherited from OriginalAccessor )
| |
(inherited from OriginalAccessor )
| |
__getstate__(self)
| |
(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 )
| |
Call a distributed method on a resource managed by the sister network. | |
Create a perspective from self.perspectiveClass and add it to this service. (inherited from Service )
| |
Called when a broker is 'detached' from me. (inherited from Perspective )
| |
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 )
| |
Returns a Deferred when the resource is loaded. | |
Make an identity from this perspective with a password. (inherited from Perspective )
| |
ownResource(self,
resourceObject,
resourceType,
resourceName)
| |
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 )
| |
Register a callable object to generate resources. | |
removeIdentity(self,
identityName)
| |
(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. | |
This call is made before shutdown. (inherited from ApplicationService )
| |
Uncache a perspective loaded from an external data source. (inherited from Service )
| |
unloadResource(self,
resourceType,
resourceName)
| |
(inherited from ApplicationService )
| |
(internal) Do a version upgrade. (inherited from Versioned )
|
Method Details |
---|
__init__(self,
motherHost,
motherPort,
motherService,
publishHost,
localPort,
serviceName='twisted.sister',
sharedSecret='shhh!',
application=None)
|
callDistributed(self, caller, destResourceType, destResourceName, methodName, *args, **kw)Call a distributed method on a resource managed by the sister network. This will call the method 'getResourceInfo' on the calling object which must return its resourceType and resourceName to be identified by. The final method being called will have 'sister_' prepended to its name and have the calling objects resourceType and resourceName as the first arguments. #NOTE: this method of identifying the calling object is temporary.. need to establish a better way which includes allowing the calling object to expose some data and/or functionality to the caller. |
loadResource(self, resourceType, resourceName, args)Returns a Deferred when the resource is loaded. This deferred may yield some data that is returned to the caller. |
registerResourceLoader(self, resourceType, resourceLoader)Register a callable object to generate resources. The callable object may return Deferreds or synchronous values. |
startService(self)This call is made as a service starts up.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:26:04 2003 | http://epydoc.sf.net |