Class e.p.h.h.ElisaHttpClientFactory(ClientFactory, Loggable):

Part of elisa.plugins.http_client.http_client View In Hierarchy

A specialized HTTP client factory that automatically reconnects when disconnected from the server if the client has pending requests (with a maximum of 3 retries in case of failure).
Line # Kind Name Docs
68 Method __init__ Undocumented
72 Method buildProtocol Build and return the HTTP client protocol.
97 Method startedConnecting Callback invoked when the connection is initiated.
106 Method clientConnectionFailed Callback invoked when the connection fails.
118 Method clientConnectionLost Callback invoked when the connection is lost.
139 Method _retry Undocumented
def __init__(self, client):
Undocumented
def buildProtocol(self, addr):
Build and return the HTTP client protocol.
ParametersaddrHTTP host and port (type: an implementation of twisted.internet.interfaces.IAddress )
Returnsan HTTP protocol instance (type: ElisaHttpClientProtocol )
def startedConnecting(self, connector):
Callback invoked when the connection is initiated.
Parametersconnectorthe TCP connector (type: twisted.internet.tcp.Connector )
def clientConnectionFailed(self, connector, reason):
Callback invoked when the connection fails.
Parametersconnectorthe TCP connector (type: twisted.internet.tcp.Connector )
reasonthe reason of the connection failure (type: twisted.python.failure.Failure )
def clientConnectionLost(self, connector, reason):
Callback invoked when the connection is lost. This happens when the server decides to terminate the connection.
Parametersconnectorthe TCP connector (type: twisted.internet.tcp.Connector )
reasonthe reason of the connection loss (type: twisted.python.failure.Failure )
def _retry(self, connector):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.