Trees | Index | Help |
---|
Package flumotion :: Package twisted :: Module pb :: Class ReconnectingPBClientFactory |
|
Loggable
--+ |Factory
--+ | | |ClientFactory
--+ | | |PBClientFactory
--+ |Factory
--+ | | |ClientFactory
--+ | | |ReconnectingClientFactory
--+ | ReconnectingPBClientFactory
Reconnecting client factory for normal PB brokers.
Users of this factory call startLogin to start logging in, and should override getLoginDeferred to get the deferred returned from the PB server for each login attempt.Method Summary | |
---|---|
__init__(self)
| |
Called when a connection has failed to connect. | |
clientConnectionLost(self,
connector,
reason)
| |
clientConnectionMade(self,
broker)
| |
The deferred from login is now available. | |
startLogin(self,
credentials,
client)
| |
Inherited from PBClientFactory | |
If the factory is connected, close the connection. | |
Get perspective from remote PB server. | |
Get root object of remote PB server. | |
Login and get perspective from remote PB server. | |
Inherited from Loggable | |
Log a debug message. | |
dict |
Log a message at the given level, with the possibility of going higher up in the stack. |
Log an error. | |
Log an informational message. | |
Log a log message. | |
Overridable log function. | |
Overridable object name function. | |
Log a warning. | |
Log a warning about a Failure. | |
Inherited from ReconnectingClientFactory | |
Call me after a successful connection to reset. | |
Have this connector connect again, after a suitable delay. | |
I put a stop to any attempt to reconnect in progress. | |
Inherited from ClientFactory | |
Called when a connection has been started. | |
Inherited from Factory | |
Create an instance of a subclass of Protocol. | |
Make sure startFactory is called. | |
Make sure stopFactory is called. | |
This will be called before I begin listening on a Port or Connector. | |
This will be called before I stop listening on all Ports/Connectors. |
Instance Variable Summary | |
---|---|
Inherited from ReconnectingClientFactory | |
float |
factor : a multiplicitive factor by which the delay grows |
float |
initialDelay : Delay for the first reconnection attempt. |
float |
jitter : percentage of randomness to introduce into the delay length to prevent
stampeding. |
int |
maxDelay : Maximum number of seconds between connection attempts. |
Class Variable Summary | |
---|---|
Inherited from PBClientFactory | |
int |
unsafeTracebacks = 0 |
Inherited from Loggable | |
Implements |
__implemented__ = <implementedBy flumotion.common.log.Lo...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
str |
logCategory : Implementors can provide a category to log their messages under. |
Inherited from ReconnectingClientFactory | |
NoneType |
connector = None |
int |
continueTrying = 1 |
float |
delay = 1.0 |
NoneType |
maxRetries = None |
int |
retries = 0 |
Inherited from Factory | |
bool |
noisy = True
|
int |
numPorts = 0 |
NoneType |
protocol = None |
Method Details |
---|
clientConnectionFailed(self, connector, reason)Called when a connection has failed to connect. It may be useful to call connector.connect() - this will reconnect.
|
gotDeferredLogin(self, deferred)The deferred from login is now available. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Fri Apr 6 10:10:25 2007 | http://epydoc.sf.net |