public function SolrConnectorPluginBase::pingServer in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::pingServer()
- 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::pingServer()
- 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::pingServer()
Pings the Solr server to tell whether it can be accessed.
Return value
mixed The latency in milliseconds if the core can be accessed, otherwise FALSE.
Throws
\Drupal\search_api_solr\SearchApiSolrException
Overrides SolrConnectorInterface::pingServer
1 method overrides SolrConnectorPluginBase::pingServer()
- Solr36Connector::pingServer in modules/
search_api_solr_legacy/ src/ Plugin/ SolrConnector/ Solr36Connector.php - Pings the Solr server to tell whether it can be accessed.
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 604
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function pingServer() {
return $this
->getServerInfo(TRUE);
}