Skip to content

Zookeeper::__construct

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

Zookeeper::__construct - Create a Zookeeper instance

Description

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

Create a Zookeeper instance

Parameters

host

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

watcher_cb

TODO:

recv_timeout

TODO:

Return Values

A Zookeeper object.

Examples

Example #1 Create a Zookeeper instance

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