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());
 }