You are here

public function SolrConnectorInterface::pingEndpoint in Search API Solr 4.x

Pings the Solr endpoint to tell whether it can be accessed.

Parameters

\Solarium\Core\Client\Endpoint|null $endpoint:

array $options: (optional) An array of options.

Return value

mixed The latency in milliseconds if the endpoint can be accessed, otherwise FALSE.

1 method overrides SolrConnectorInterface::pingEndpoint()
SolrConnectorPluginBase::pingEndpoint in src/SolrConnector/SolrConnectorPluginBase.php
Pings the Solr endpoint to tell whether it can be accessed.

File

src/SolrConnectorInterface.php, line 232

Class

SolrConnectorInterface
The Solr connector interface.

Namespace

Drupal\search_api_solr

Code

public function pingEndpoint(?Endpoint $endpoint = NULL, array $options = []);