You are here

public function SolrConnectorPluginBase::getServerInfo in Search API Solr 8.3

Same name and namespace in other branches
  1. 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerInfo()
  2. 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerInfo()
  3. 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerInfo()

Gets information about the Solr server.

Parameters

bool $reset: If TRUE the server will be asked regardless if a previous call is cached.

Return value

object A response object with server information.

Throws

\Drupal\search_api_solr\SearchApiSolrException

Overrides SolrConnectorInterface::getServerInfo

2 calls to SolrConnectorPluginBase::getServerInfo()
SolrConnectorPluginBase::getSolrVersion in src/SolrConnector/SolrConnectorPluginBase.php
Gets the current Solr version.
SolrConnectorPluginBase::pingServer in src/SolrConnector/SolrConnectorPluginBase.php
Pings the Solr server to tell whether it can be accessed.

File

src/SolrConnector/SolrConnectorPluginBase.php, line 451

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getServerInfo($reset = FALSE) {
  $this
    ->useTimeout();
  return $this
    ->getDataFromHandler('admin/info/system', $reset);
}