Package flumotion :: Package worker :: Module worker :: Class WorkerClientFactory
[hide private]

Class WorkerClientFactory

source code

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

I am a client factory for the worker to log in to the manager.

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, brain) 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, clientConnectionMade, startLogin

Inherited from twisted.pb.FPBClientFactory: getKeycardClasses, login

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

Inherited from twisted.spread.pb.PBClientFactory (private): _cbResponse, _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]
  logCategory = 'worker'
Implementors can provide a category to log their messages under.

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, brain)
(Constructor)

source code 
Parameters:
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.

Parameters:
  • reason - twisted.spread.pb.failure.Failure
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)