Package flumotion :: Package component :: Package misc :: Package porter :: Module porterclient :: Class PorterClientFactory
[hide private]

Class PorterClientFactory

source code

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

A PB client factory that knows how to log into a Porter. Lives in streaming components, and accepts FDs passed over this connection.

Nested Classes [hide private]

Inherited from twisted.spread.pb.PBClientFactory: protocol

Instance Methods [hide private]
 
__init__(self, childFactory)
Create a PorterClientFactory that will use childFactory to create protocol instances for clients attached to the FDs received over this connection.
source code
 
buildProtocol(self, addr)
Build the broker instance, passing the security options to it.
source code
 
registerPath(self, path) source code
 
deregisterPath(self, path) source code
 
registerPrefix(self, prefix) source code
 
deregisterPrefix(self, prefix) source code
 
registerDefault(self) source code
 
deregisterDefault(self) source code

Inherited from twisted.pb.ReconnectingPBClientFactory: clientConnectionFailed, clientConnectionLost, clientConnectionMade, gotDeferredLogin, startLogin

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

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

Inherited from twisted.internet.protocol.ClientFactory: startedConnecting

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

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

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

Class Variables [hide private]

Inherited from twisted.spread.pb.PBClientFactory: unsafeTracebacks

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

Inherited from extern.log.log.Loggable: logCategory

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

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

Instance Variables [hide private]

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

Method Details [hide private]

__init__(self, childFactory)
(Constructor)

source code 

Create a PorterClientFactory that will use childFactory to create protocol instances for clients attached to the FDs received over this connection.

Parameters:
  • unsafeTracebacks - if set, tracebacks for exceptions will be sent over the wire.
  • security - security options used by the broker, default to globalSecurity.
Overrides: twisted.spread.pb.PBClientFactory.__init__

buildProtocol(self, addr)

source code 

Build the broker instance, passing the security options to it.

Parameters:
  • addr - an object implementing twisted.internet.interfaces.IAddress
Overrides: twisted.internet.protocol.Factory.buildProtocol
(inherited documentation)