ZookeeperConfig::getGets the last committed configuration of the ZooKeeper cluster as it is known to the server to which the client is connected, synchronously 説明
public
string ZookeeperConfig::get(callable
$watcher_cb = null , array &$stat = null )パラメータ
戻り値Returns the configuration string on success, and false on failure. エラー / 例外This method emits ZookeeperException and it's derivatives when parameters count or types are wrong or fail to get configuration. 例例1 ZookeeperConfig::get example Get configuration.
上の例の出力は以下となります。 server.1=localhost:2888:3888:participant;0.0.0.0:2181 version=0xca01e881a2 参考
|