public function refresh() { $path = '_nodes/' . $this->getNode()->getName() . '/stats'; $this->_response = $this->getNode()->getClient()->request($path, Request::GET); $data = $this->getResponse()->getData(); $this->_data = reset($data['nodes']); }