getActivePrimaryShards() public method

Gets the number of active primary shards.
public getActivePrimaryShards ( ) : integer
return integer
 public function testGetActivePrimaryShards()
 {
     $this->assertEquals(3, $this->_index->getActivePrimaryShards());
 }