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)
Create an instance of a subclass of Protocol.
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): _cbResponse, _cbSendUsername, _failAll, _reset

Inherited from twisted.internet.protocol.ClientFactory: startedConnecting

Inherited from twisted.internet.protocol.Factory: __providedBy__, 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.spread.pb.PBClientFactory: unsafeTracebacks

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

Inherited from extern.log.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, 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.

Overrides: twisted.spread.pb.PBClientFactory.__init__

buildProtocol(self, addr)

source code 

Create an instance of a subclass of Protocol.

The returned instance will handle input on an incoming server connection, and an attribute "factory" pointing to the creating factory.

Override this method to alter how Protocol instances get created.

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