':param context_factory: TLS context factory for the AMP client.'

def __init__(self, context_factory):

    MultiService.__init__(self)
    convergence_loop = build_convergence_loop_fsm(self.reactor, self.deployer)
    self.logger = convergence_loop.logger
    self.cluster_status = build_cluster_status_fsm(convergence_loop)
    self.reconnecting_factory = ReconnectingClientFactory.forProtocol((lambda : AgentAMP(self.reactor, self)))
    self.reconnecting_factory.maxDelay = MAXIMUM_RECONNECT_DELAY
    self.factory = TLSMemoryBIOFactory(context_factory, True, self.reconnecting_factory)
