public function __construct(\CouchbaseBucket $client)
{
$this->client = $client;
$info = $this->client->manager()->info();
foreach ($info['nodes'] as $node) {
if ($node['status'] !== 'healthy') {
throw new ServerUnhealthy('Server isn\'t ready yet');
}
}
}