Skip to content
Timandes White edited this page May 21, 2015 · 1 revision

Zookeeper::connect - Connect to Zookeeper cluster

Description

public void Zookeeper::connect( [$host = '' [, $watcher_cb = null [, $recv_timeout = 10000 ]]] )

Connect to Zookeeper cluster

Parameters

host

CSV list of host:port values (e.g. "host1:2181,host2:2181")

watcher_cb

TODO:

recv_timeout

TODO:

Return Values

No value is returned.

Examples

Example #1 Connect to Zookeeper cluster

<?php
$zookeeper = new Zookeeper();
$zookeeper->connect('localhost:2181');
?>