Package flumotion :: Package admin :: Module admin :: Class AdminClientFactory
[hide private]

Class AdminClientFactory

source code

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

Nested Classes [hide private]
subclass of flumotion.common.interfaces.IMedium perspectiveInterface
the interface we want to request a perspective for

Inherited from twisted.spread.pb.PBClientFactory: protocol

Instance Methods [hide private]
 
__init__(self, medium, extraTenacious=False, maxDelay=20) source code
 
startedConnecting(self, connector)
Called when a connection has been started.
source code
 
clientConnectionMade(self, broker) source code
 
clientConnectionFailed(self, connector, reason)
Called when a connection has failed to connect.
source code
 
gotDeferredLogin(self, d)
The deferred from login is now available.
source code

Inherited from twisted.pb.ReconnectingFPBClientFactory: clientConnectionLost, startLogin

Inherited from twisted.pb.FPBClientFactory: disconnect, getKeycardClasses, login

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 twisted.pb.FPBClientFactory: logCategory

Inherited from twisted.pb.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 twisted.pb.FPBClientFactory: keycard, medium

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

Method Details [hide private]

__init__(self, medium, extraTenacious=False, maxDelay=20)
(Constructor)

source code 
Parameters:
  • medium (AdminModel)
Overrides: twisted.spread.pb.PBClientFactory.__init__

startedConnecting(self, connector)

source code 

Called when a connection has been started.

You can call connector.stopConnecting() to stop the connection attempt.

Parameters:
  • connector - a Connector object.
Overrides: twisted.internet.protocol.ClientFactory.startedConnecting
(inherited documentation)

clientConnectionMade(self, broker)

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

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.

Parameters:
  • reason - twisted.spread.pb.failure.Failure
  • connector (implementation of twisted.internet.interfaces.IConnector)
Overrides: twisted.internet.protocol.ReconnectingClientFactory.clientConnectionFailed

gotDeferredLogin(self, d)

source code 

The deferred from login is now available.

Overrides: twisted.pb.ReconnectingFPBClientFactory.gotDeferredLogin
(inherited documentation)