Package flumotion :: Package component :: Package common :: Package fgdp :: Module protocol :: Class FGDPClientFactory
[hide private]

Class FGDPClientFactory

source code

          twisted.internet.protocol.Factory --+        
                                              |        
        twisted.internet.protocol.ClientFactory --+    
                                                  |    
twisted.internet.protocol.ReconnectingClientFactory --+
                                                      |
                            extern.log.log.Loggable --+
                                                      |
                                                     FGDPClientFactory

Instance Methods [hide private]
 
__init__(self, gstElement) source code
 
_setProtocol(self, version) source code
 
buildProtocol(self, addr)
Create an instance of a subclass of Protocol.
source code
 
retry(self, connector=None)
Have this connector connect again, after a suitable delay.
source code

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

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

Class Methods [hide private]

Inherited from twisted.internet.protocol.Factory: forProtocol

Class Variables [hide private]
  logCategory = 'fgdp-client'
Implementors can provide a category to log their messages under.
  _supportedVersions = ['0.1']

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

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

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

Instance Variables [hide private]

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

Method Details [hide private]

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)

retry(self, connector=None)

source code 

Have this connector connect again, after a suitable delay.

Overrides: twisted.internet.protocol.ReconnectingClientFactory.retry
(inherited documentation)