You are here

function DrupalApacheSolrServiceInterface::ping in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 apachesolr.interface.inc \DrupalApacheSolrServiceInterface::ping()
  2. 7 apachesolr.interface.inc \DrupalApacheSolrServiceInterface::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.

2 methods override DrupalApacheSolrServiceInterface::ping()
DrupalApacheSolrService::ping in ./Drupal_Apache_Solr_Service.php
Call the /admin/ping servlet, to test the connection to the server.
DummySolr::ping in tests/Dummy_Solr.php
Call the /admin/ping servlet, to test the connection to the server.

File

./apachesolr.interface.inc, line 347

Class

DrupalApacheSolrServiceInterface
The interface for all 'Service' objects.

Code

function ping($timeout = 2);