Elastica\Cluster\Health\Index::getRelocatingShards PHP Method

getRelocatingShards() public method

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

Usage Example

 public function testGetRelocatingShards()
 {
     $this->assertEquals(5, $this->_index->getRelocatingShards());
 }