getStats() public method

Return stats object of the current node.
public getStats ( ) : Stats
return Elastica\Node\Stats Node stats
 /**
  * @group functional
  */
 public function testGetStats()
 {
     $client = $this->_getClient();
     $names = $client->getCluster()->getNodeNames();
     $name = reset($names);
     $node = new Node($name, $client);
     $stats = $node->getStats();
     $this->assertInstanceOf('Elastica\\Node\\Stats', $stats);
 }