#NEWLINE# def __init__( self , hosts , nodes , metrics_store , telemetry , client_factory_class = EsClientFactory , clock = time . Clock ) : #NEWLINE# #INDENT# '\n        Creates a new Elasticsearch cluster.\n\n        :param hosts: The hosts to which we can connect to (this must not necessarily be each host in the cluster). Mandatory.\n        :param nodes: The nodes of which this cluster consists of. Mandatory.\n        :param metrics_store: The corresponding metrics store. Mandatory.\n        :param telemetry Telemetry attached to this cluster. Mandatory.\n        :param client_factory_class: This parameter is just intended for testing. Optional.\n        :param clock: This parameter is just intended for testing. Optional.\n        ' #NEWLINE# self . client = client_factory_class ( hosts ) . create ( ) #NEWLINE# self . hosts = hosts #NEWLINE# self . nodes = nodes #NEWLINE# self . metrics_store = metrics_store #NEWLINE# self . telemetry = telemetry #NEWLINE# self . clock = clock