Package flumotion :: Package twisted :: Module pb :: Class ReconnectingFPBClientFactory
[hide private]

Class ReconnectingFPBClientFactory

source code

      twisted.internet.protocol.Factory --+            
                                          |            
    twisted.internet.protocol.ClientFactory --+        
                                              |        
              twisted.spread.pb.PBClientFactory --+    
                                                  |    
                        extern.log.log.Loggable --+    
                                                  |    
                                   FPBClientFactory --+
                                                      |
          twisted.internet.protocol.Factory --+       |
                                              |       |
        twisted.internet.protocol.ClientFactory --+   |
                                                  |   |
twisted.internet.protocol.ReconnectingClientFactory --+
                                                      |
                                                     ReconnectingFPBClientFactory
Known Subclasses:

Reconnecting client factory for FPB brokers (using keycards for login).

Users of this factory call startLogin to start logging in. Override getLoginDeferred to get a handle to the deferred returned from the PB server.

Nested Classes [hide private]

Inherited from twisted.spread.pb.PBClientFactory: protocol

Instance Methods [hide private]
 
__init__(self) source code
 
clientConnectionFailed(self, connector, reason)
Called when a connection has failed to connect.
source code
 
clientConnectionLost(self, connector, reason)
Reconnecting subclasses should call with reconnecting=1.
source code
 
clientConnectionMade(self, broker) source code
 
startLogin(self, authenticator) source code
 
gotDeferredLogin(self, deferred)
The deferred from login is now available.
source code

Inherited from FPBClientFactory: disconnect, getKeycardClasses, login, startedConnecting

Inherited from twisted.spread.pb.PBClientFactory: getPerspective, getRootObject

Inherited from twisted.spread.pb.PBClientFactory (private): _cbResponse, _failAll, _reset

Inherited from twisted.internet.protocol.Factory: __providedBy__, buildProtocol, doStart, doStop, startFactory, stopFactory

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Inherited from twisted.internet.protocol.ReconnectingClientFactory: resetDelay, retry, stopTrying

Class Variables [hide private]

Inherited from FPBClientFactory: logCategory

Inherited from FPBClientFactory (private): _fpbconnector

Inherited from twisted.spread.pb.PBClientFactory: unsafeTracebacks

Inherited from twisted.internet.protocol.Factory: __implemented__, __provides__, noisy, numPorts

Inherited from twisted.internet.protocol.ReconnectingClientFactory: connector, continueTrying, delay, maxRetries, retries

Inherited from twisted.internet.protocol.ReconnectingClientFactory (private): _callID

Instance Variables [hide private]

Inherited from FPBClientFactory: keycard, medium, perspectiveInterface

Inherited from twisted.internet.protocol.ReconnectingClientFactory: factor, initialDelay, jitter, maxDelay

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: twisted.spread.pb.PBClientFactory.__init__

clientConnectionFailed(self, connector, reason)

source code 

Called when a connection has failed to connect.

It may be useful to call connector.connect() - this will reconnect.

Overrides: twisted.internet.protocol.ReconnectingClientFactory.clientConnectionFailed

clientConnectionLost(self, connector, reason)

source code 

Reconnecting subclasses should call with reconnecting=1.

Overrides: twisted.internet.protocol.ReconnectingClientFactory.clientConnectionLost

clientConnectionMade(self, broker)

source code 
Overrides: twisted.spread.pb.PBClientFactory.clientConnectionMade