Elastica\Cluster\Health::getUnassignedShards PHP Method

getUnassignedShards() public method

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

Usage Example

コード例 #1
0
ファイル: HealthTest.php プロジェクト: bungkoko/Elastica
 /**
  * @group unit
  */
 public function testGetUnassignedShards()
 {
     $this->assertEquals(5, $this->_health->getUnassignedShards());
 }