Elastica\Cluster\Health::getActivePrimaryShards PHP 메소드

getActivePrimaryShards() 공개 메소드

Gets the number of active primary shards.
public getActivePrimaryShards ( ) : integer
리턴 integer
    public function getActivePrimaryShards()
    {
        return $this->_data['active_primary_shards'];
    }

Usage Example

예제 #1
0
 /**
  * @group unit
  */
 public function testGetActivePrimaryShards()
 {
     $this->assertEquals(3, $this->_health->getActivePrimaryShards());
 }