Table of Contents

Class: SisterService | Twisted-0.19.0/twisted/sister/sisterserv.py
--- | ---
### A `parent' 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.
Base Classes |
--- | ---
Service Perspective
Methods |
--- | ---
__getstate__ __init__ _cbLocked _cbUnload _ebLocked | loadResource ownResource registerResourceLoader startService unloadResource
| __getstate__
    __getstate__ ( self )
| __init__
    __init__ (
            self,
            parentHost,
            parentPort,
            parentService,
            localPort,
            sharedSecret,
            publishHost,
            serviceName="twisted.sister",
            application=None,
            )
### Initialize me. (Application's authorizer must be a TicketAuthorizer, otherwise login won't work.)
| _cbLocked
    _cbLocked (
            self,
            result,
            path,
            )
| _cbUnload
    _cbUnload ( self,  data )
| _ebLocked
    _ebLocked (
            self,
            error,
            path,
            )
Exceptions |
--- | ---
error
| loadResource
    loadResource (
            self,
            resourceType,
            resourceName,
            generateTicket,
            )
### Returns a Deferred which may yield a ticket. If generateTicket is True, this will yield a ticket, otherwise, it yields None.
| ownResource
    ownResource (
            self,
            resourceObject,
            resourceType,
            resourceName,
            )
| registerResourceLoader
    registerResourceLoader (
            self,
            resourceType,
            resourceLoader,
            )
### Register a callable object to generate resources. The callable object may return Deferreds or synchronous values.
| startService
    startService ( self )
| unloadResource
    unloadResource (
            self,
            resourceType,
            resourceName,
            )

Table of Contents

This document was automatically generated on Sun Jul 14 19:53:19 2002 by HappyDoc version 2.0