ZookeeperConfig::getGets the last committed configuration of the ZooKeeper cluster as it is known to the server to which the client is connected, synchronously Description
public
string ZookeeperConfig::get(callable
$watcher_cb = null , array &$stat = null )Parameters
Return ValuesReturns the configuration string on success, and false on failure. Errors/ExceptionsThis method emits ZookeeperException and it's derivatives when parameters count or types are wrong or fail to get configuration. ExamplesExample #1 ZookeeperConfig::get example Get configuration.
The above example will output: server.1=localhost:2888:3888:participant;0.0.0.0:2181 version=0xca01e881a2 See Also
|