You are here

public function DESConnector::getNodesProperties in Elasticsearch Connector 8

Return nodes info.

Return value

array Info array.

Throws

\Exception Exception().

File

src/DESConnector/DESConnector.php, line 239
Provides Elasticsearch Client for Drupal's Elasticsearch Connector module.

Class

DESConnector
Drupal Elasticsearch Interface.

Namespace

Drupal\elasticsearch_connector\DESConnector

Code

public function getNodesProperties() {
  $result = FALSE;
  try {
    try {
      $result['stats'] = $this
        ->getNodesStats();
      $result['info'] = $this
        ->getNodesInfo();
    } catch (\Exception $e) {

      // TODO: Do not set messages or log messages into the abstraction.
      drupal_set_message($e
        ->getMessage(), 'error');
    }
  } catch (\Exception $e) {
    throw $e;
  }
  return $result;
}