getState() 공개 메소드

Returns the full state of the cluster.
public getState ( ) : array
리턴 array State array
예제 #1
0
파일: Status.php 프로젝트: kskod/Elastica
 /**
  * Returns all index settings
  *
  * @return array Index settings
  */
 public function getSettings()
 {
     // TODO Update as soon as new API is implemented
     $cluster = new Cluster($this->_index->getClient());
     $state = $cluster->getState();
     return $state['metadata']['indices'][$this->_index->getName()]['settings'];
 }