ZookeeperConfig::addAdd servers to the ensemble 説明
public
void ZookeeperConfig::add(string
$members , int $version = -1, array &$stat = null )パラメータ
戻り値値を返しません。 エラー / 例外This method emits ZookeeperException and it's derivatives when parameters count or types are wrong or fail to save value to node. 例例1 ZookeeperConfig::add example Add members.
<?php 上の例の出力は以下となります。 server.1=localhost:2888:3888:participant;0.0.0.0:2181 server.2=localhost:2889:3889:participant;0.0.0.0:2182 version=0xca01e881a2 参考
|