|
Zookeeper::existsChecks the existence of a node in zookeeper synchronously 説明
public
array Zookeeper::exists(string
$path , callable $watcher_cb = null )パラメータ
戻り値Returns the value of stat for the path if the given node exists, otherwise false. エラー / 例外This method emits PHP error/warning when parameters count or types are wrong or fail to check the existence of a node. 警告
Since version 0.3.0, this method emits ZookeeperException and it's derivatives. 例例1 Zookeeper::exists example Check the existence of a node.
上の例の出力は以下となります。 EXISTS 参考
|