Home | Trees | Index | Help |
|
---|
Package buildbot :: Package slave :: Module bot :: Class BotFactory |
|
Factory
--+ |ClientFactory
--+ |PBClientFactory
--+ |Factory
--+ | | |ClientFactory
--+ | | |ReconnectingClientFactory
--+ |ReconnectingPBClientFactory
--+ | BotFactory
Method Summary | |
---|---|
__init__(self,
keepaliveInterval,
keepaliveTimeout)
| |
activity(self,
res)
| |
checkActivity(self)
| |
Called when a connection has failed to connect. | |
clientConnectionLost(self,
connector,
reason)
| |
doKeepalive(self)
| |
The remote avatar or perspective (obtained each time this factory connects) is now available. | |
keepaliveLost(self,
f)
| |
Called when a connection has been started. | |
startTimers(self)
| |
This will be called before I stop listening on all Ports/Connectors. | |
stopTimers(self)
| |
Inherited from ReconnectingPBClientFactory | |
| |
| |
| |
| |
The login process failed, most likely because of an authorization failure (bad password), but it is also possible that we lost the new connection before we managed to send our credentials. | |
| |
The remote root object (obtained each time this factory connects) is now available. | |
| |
| |
| |
Inherited from PBClientFactory | |
If the factory is connected, close the connection. | |
Get root object of remote PB server. | |
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 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. |
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 | |
---|---|
NoneType |
activityTimer = None |
NoneType |
keepaliveInterval = None |
int |
keepaliveTimeout = 30 |
NoneType |
keepaliveTimer = None |
int |
lastActivity = 0 |
NoneType |
perspective = None |
int |
unsafeTracebacks = 1 |
Inherited from ReconnectingClientFactory | |
NoneType |
connector = None |
int |
continueTrying = 1 |
float |
delay = 1.0 |
NoneType |
maxRetries = None |
int |
retries = 0 |
Inherited from Factory | |
Implements |
__implemented__ = <implementedBy twisted.internet.protoc...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
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.
|
gotPerspective(self, perspective)The remote avatar or perspective (obtained each time this factory connects) is now available.
|
startedConnecting(self, connector)Called when a connection has been started. You can call connector.stopConnecting() to stop the connection attempt.
|
stopFactory(self)This will be called before I stop listening on all Ports/Connectors. This can be overridden to perform 'shutdown' tasks such as disconnecting database connections, closing files, etc. It will be called, for example, before an application shuts down, if it was connected to a port. User code should not call this function directly.
|
Class Variable Details |
---|
activityTimer
|
keepaliveInterval
|
keepaliveTimeout
|
keepaliveTimer
|
lastActivity
|
perspective
|
unsafeTracebacks
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Dec 10 22:04:45 2006 | http://epydoc.sf.net |