class documentation
class _InstanceFactory(ClientFactory): (source)
Constructor: _InstanceFactory(reactor, instance, deferred)
Factory used by ClientCreator.
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | build |
Return the pre-constructed protocol instance and arrange to fire the waiting Deferred to indicate success establishing the connection. |
Method | client |
Arrange to fire the waiting Deferred with the given failure to indicate the connection could not be established. |
Method | fire |
Clear self.pending to avoid a reference cycle and then invoke func with the value. |
Class Variable | noisy |
Undocumented |
Instance Variable | deferred |
The Deferred which represents this connection attempt and which will be fired when it succeeds or fails. |
Instance Variable | instance |
Undocumented |
Instance Variable | pending |
After a connection attempt succeeds or fails, a delayed call which will fire the Deferred representing this connection attempt. |
Instance Variable | reactor |
Undocumented |
Inherited from ClientFactory
:
Method | client |
Called when an established connection is lost. |
Method | started |
Called when a connection has been started. |
Inherited from Factory
(via ClientFactory
):
Class Method | for |
Create a factory for the given protocol. |
Method | do |
Make sure startFactory is called. |
Method | do |
Make sure stopFactory is called. |
Method | log |
Describe this factory for log messages. |
Method | start |
This will be called before I begin listening on a Port or Connector. |
Method | stop |
This will be called before I stop listening on all Ports/Connectors. |
Class Variable | protocol |
Undocumented |
Instance Variable | num |
Undocumented |
Return the pre-constructed protocol instance and arrange to fire the waiting Deferred
to indicate success establishing the connection.
Arrange to fire the waiting Deferred
with the given failure to indicate the connection could not be established.
The Deferred
which represents this connection attempt and which will be fired when it succeeds or fails.
After a connection attempt succeeds or fails, a delayed call which will fire the Deferred
representing this connection attempt.