You are here

function DummySolr::ping in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 tests/Dummy_Solr.php \DummySolr::ping()
  2. 6.3 tests/Dummy_Solr.php \DummySolr::ping()

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

Parameters

$timeout: maximum time to wait for ping in seconds, -1 for unlimited (default 2).

Return value

(float) seconds taken to ping the server, FALSE if timeout occurs.

Overrides DrupalApacheSolrServiceInterface::ping

File

tests/Dummy_Solr.php, line 252
Dummy object to simulate a Solr Service

Class

DummySolr
@file Dummy object to simulate a Solr Service

Code

function ping($timeout = 2) {
}