Basho\Riak::getActiveNodeIndex PHP Метод

getActiveNodeIndex() публичный Метод

public getActiveNodeIndex ( ) : integer
Результат integer
    public function getActiveNodeIndex()
    {
        return $this->activeNodeIndex;
    }

Usage Example

Пример #1
0
 public function testPickNode()
 {
     $nodes = static::getCluster();
     $riak = new Riak($nodes);
     $this->assertNotFalse($riak->getActiveNodeIndex());
     $this->assertInstanceOf('Basho\\Riak\\Node', $riak->getActiveNode());
 }