PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

Zookeeper::connect - Create a handle to used communicate with zookeeper. | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

Zookeeper::connect

(PECL zookeeper >= 0.2.0)

Zookeeper::connectCreate a handle to used communicate with zookeeper.

説明

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

This method creates a new handle and a zookeeper session that corresponds to that handle. Session establishment is asynchronous, meaning that the session should not be considered established until (and unless) an event of state ZOO_CONNECTED_STATE is received.

パラメータ

host

Comma separated host:port pairs, each corresponding to a zk server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002"

watcher_cb

The global watcher callback function. When notifications are triggered this function will be invoked.

recv_timeout

The timeout for this session, only valid if the connections is currently connected (ie. last watcher state is ZOO_CONNECTED_STATE).

エラー / 例外

This method emits PHP error/warning when parameters count or types are wrong or could not init instance.

警告

Since version 0.3.0, this method emits ZookeeperException and it's derivatives.

参考


忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「Zookeeper::connect - Create a handle to used communicate with zookeeper.」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | Zookeeper::connect - Create a handle to used communicate with zookeeper.」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: