« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 4 of about 4 for zkConfig (0.002 sec.)
ZookeeperConfig::remove — Remove servers from the ensemble | PHP 8.3 11187
ZookeeperConfig::remove (PECL zookeeper >= 0.6.0, ZooKeeper >= 3.5.0) ZookeeperConfig::remove — Remove servers from the ensemble 説明 public function ZookeeperConfig::remove ( string $id_list , int $version = -1 , array &$stat = null ): voi ... lient = new Zookeeper (); $client -> connect ( 'localhost:2181' ); $client -> addAuth ( 'digest' , 'timandes:timandes' ); $zkConfig = $client -> getConfig (); $zkConfig -> set ( "server.1=localhost:2888:3888:participant;0.0.0.0:2181,server.2=localhost:28 ... 89:3889:participant;0.0.0.0:2182" ); $zkConfig -> remove ( "2" ); echo $zkConfig -> get (); if ( $r ) echo $r ; else echo 'ERR' ; ?> 上の例の出力は以下となります。 serve ...
https://man.mtool.work/php/8.3/zookeeperconfig.remove.html
ZookeeperConfig::add — Add servers to the ensemble | PHP 8.3 10984
ZookeeperConfig::add (PECL zookeeper >= 0.6.0, ZooKeeper >= 3.5.0) ZookeeperConfig::add — Add servers to the ensemble 説明 public function ZookeeperConfig::add ( string $members , int $version = -1 , array &$stat = null ): void パラメータ m ... lient = new Zookeeper (); $client -> connect ( 'localhost:2181' ); $client -> addAuth ( 'digest' , 'timandes:timandes' ); $zkConfig = $client -> getConfig (); $zkConfig -> set ( "server.1=localhost:2888:3888:participant;0.0.0.0:2181" ); $zkConfig -> add ... ( "server.2=localhost:2889:3889:participant;0.0.0.0:2182" ); $r = $zkConfig -> get (); if ( $r ) echo $r ; else echo 'ERR' ; ?> 上の例の出力は以下となります。 server.1=localhost:2888:3888:participan ...
https://man.mtool.work/php/8.3/zookeeperconfig.add.html
ZookeeperConfig::get — Gets the last committed configuration of the ZooKeeper c... 7397
ZookeeperConfig::get (PECL zookeeper >= 0.6.0, ZooKeeper >= 3.5.0) ZookeeperConfig::get — Gets the last committed configuration of the ZooKeeper cluster as it is known to the server to which the client is connected, synchronously 説明 publi ... on. <?php $zk = new Zookeeper (); $zk -> connect ( 'localhost:2181' ); $zk -> addAuth ( 'digest' , 'timandes:timandes' ); $zkConfig = $zk -> getConfig (); $r = $zkConfig -> get (); if ( $r ) echo $r ; else echo 'ERR' ; ?> 上の例の出力は以下となります。 s ...
https://man.mtool.work/php/8.3/zookeeperconfig.get.html
ZookeeperConfig::set — Change ZK cluster ensemble membership and roles of ensem... 7397
ZookeeperConfig::set (PECL zookeeper >= 0.6.0, ZooKeeper >= 3.5.0) ZookeeperConfig::set — Change ZK cluster ensemble membership and roles of ensemble peers 説明 public function ZookeeperConfig::set ( string $members , int $version = -1 , ar ... lient = new Zookeeper (); $client -> connect ( 'localhost:2181' ); $client -> addAuth ( 'digest' , 'timandes:timandes' ); $zkConfig = $client -> getConfig (); $zkConfig -> set ( "server.1=localhost:2888:3888:participant;0.0.0.0:2181" ); ?> 参考 Zookeeper ...
https://man.mtool.work/php/8.3/zookeeperconfig.set.html
PREV 1 NEXT