Elastica\Cluster\Health::getActivePrimaryShards PHP Method

getActivePrimaryShards() public method

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

Usage Example

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