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

Class ReconnectingPBClientFactory

source code

          twisted.internet.protocol.Factory --+        
                                              |        
        twisted.internet.protocol.ClientFactory --+    
                                                  |    
                  twisted.spread.pb.PBClientFactory --+
                                                      |
                                common.log.Loggable --+
                                                      |
          twisted.internet.protocol.Factory --+       |
                                              |       |
        twisted.internet.protocol.ClientFactory --+   |
                                                  |   |
twisted.internet.protocol.ReconnectingClientFactory --+
                                                      |
                                                     ReconnectingPBClientFactory
Known Subclasses:

Reconnecting client factory for normal PB brokers.

Users of this factory call startLogin to start logging in, and should override getLoginDeferred to get the deferred returned from the PB server for each login attempt.

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, credentials, client=None) source code
 
gotDeferredLogin(self, deferred)
The deferred from login is now available.
source code

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

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

Inherited from twisted.internet.protocol.ClientFactory: startedConnecting

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

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

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

Class Variables [hide private]

Inherited from twisted.spread.pb.PBClientFactory: unsafeTracebacks

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

Inherited from common.log.Loggable: logCategory

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 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