lib/Elastica/Cluster.php
public function getNodeNames()
    {
        $data = $this->getState();
        $nodeNames = [];
        foreach ($data['nodes'] as $node) {
            $nodeNames[] = $node['name'];
        }

        return $nodeNames;
    }
public function getNodeNames()
    {
        $data = $this->getState();
        $nodeNames = [];
        foreach ($data['nodes'] as $node) {
            $nodeNames[] = $node['name'];
        }

        return $nodeNames;
    }
public function getNodeNames ( ) { $ data = $ this -> getState ( ) ; $ nodeNames = [ ] ; foreach ( $ data [ 'nodes' ] as $ node ) { $ nodeNames [ ] = $ node [ 'name' ] ; } return $ nodeNames ; }
Returns a list of existing node names.

@return array List of node names
Returns a list of existing node names .