Elastica\Cluster\Health::getActiveShards PHP Method

getActiveShards() public method

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

Usage Example

Example #1
0
 /**
  * @group unit
  */
 public function testGetActiveShards()
 {
     $this->assertEquals(4, $this->_health->getActiveShards());
 }