Basho\Riak::getActiveNodeIndex PHP Method

getActiveNodeIndex() public method

public getActiveNodeIndex ( ) : integer
return integer
    public function getActiveNodeIndex()
    {
        return $this->activeNodeIndex;
    }

Usage Example

Exemplo n.º 1
0
 public function testPickNode()
 {
     $nodes = static::getCluster();
     $riak = new Riak($nodes);
     $this->assertNotFalse($riak->getActiveNodeIndex());
     $this->assertInstanceOf('Basho\\Riak\\Node', $riak->getActiveNode());
 }