|
Zookeeper::existsChecks the existence of a node in zookeeper synchronously Description
public
array Zookeeper::exists(string
$path , callable $watcher_cb = null )Parameters
Return ValuesReturns the value of stat for the path if the given node exists, otherwise false. Errors/ExceptionsThis method emits PHP error/warning when parameters count or types are wrong or fail to check the existence of a node. Caution
Since version 0.3.0, this method emits ZookeeperException and it's derivatives. ExamplesExample #1 Zookeeper::exists example Check the existence of a node.
The above example will output: EXISTS See Also
|