You are here

public function SearchApiSolrConnectionInterface::ping in Search API Solr 7

Calls the /admin/ping servlet, to test the connection to the server.

Parameters

int|false $timeout: Maximum time to wait for ping in seconds, -1 for unlimited (default 2).

Return value

float|false Seconds taken to ping the server, FALSE if timeout occured.

1 method overrides SearchApiSolrConnectionInterface::ping()
SearchApiSolrConnection::ping in includes/solr_connection.inc
Calls the /admin/ping servlet, to test the connection to the server.

File

includes/solr_connection.interface.inc, line 25

Class

SearchApiSolrConnectionInterface
The interface for a Solr connection class.

Code

public function ping($timeout = 2);