You are here

interface ClientManagerInterface in Elasticsearch Connector 8.5

Same name and namespace in other branches
  1. 8.7 src/ElasticSearch/ClientManagerInterface.php \Drupal\elasticsearch_connector\ElasticSearch\ClientManagerInterface
  2. 8.2 src/ElasticSearch/ClientManagerInterface.php \Drupal\elasticsearch_connector\ElasticSearch\ClientManagerInterface
  3. 8.6 src/ElasticSearch/ClientManagerInterface.php \Drupal\elasticsearch_connector\ElasticSearch\ClientManagerInterface

Client manager interface.

Hierarchy

Expanded class hierarchy of ClientManagerInterface

All classes that implement ClientManagerInterface

7 files declare their use of ClientManagerInterface
ClusterDeleteForm.php in src/Form/ClusterDeleteForm.php
ClusterForm.php in src/Form/ClusterForm.php
ClusterListBuilder.php in src/Controller/ClusterListBuilder.php
ElasticsearchController.php in src/Controller/ElasticsearchController.php
IndexDeleteForm.php in src/Form/IndexDeleteForm.php

... See full list

File

src/ElasticSearch/ClientManagerInterface.php, line 13

Namespace

Drupal\elasticsearch_connector\ElasticSearch
View source
interface ClientManagerInterface {

  /**
   * Create a client manager.
   *
   * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
   *   Module handler service.
   * @param \nodespark\DESConnector\ClientFactoryInterface $clientManagerFactory
   *   Client factory.
   */
  public function __construct(ModuleHandlerInterface $module_handler, ClientFactoryInterface $clientManagerFactory);

  /**
   * Get a client to interact with the given Elasticsearch cluster.
   *
   * @param \Drupal\elasticsearch_connector\Entity\Cluster $cluster
   *   Cluster to get a client for.
   *
   * @return \nodespark\DESConnector\ClientInterface
   *   Client object to interact with the given cluster.
   */
  public function getClientForCluster(Cluster $cluster);

}

Members

Namesort descending Modifiers Type Description Overrides
ClientManagerInterface::getClientForCluster public function Get a client to interact with the given Elasticsearch cluster. 1
ClientManagerInterface::__construct public function Create a client manager. 1