Results of 1 - 10 of about 44 for zookeeper (0.001 sec.)
- The Zookeeper class | PHP 8.3 11157
- The Zookeeper class (PECL zookeeper >= 0.1.0) はじめに Represents ZooKeeper session. クラス概要 class Zookeeper { /* メソッド */ public function __construct ( string $host = '' , callable $watcher_cb = null , int $recv_timeout = 10000 ) pub
... en ( string $path , callable $watcher_cb = null ): array public function getClientId (): int public function getConfig (): ZookeeperConfig public function getRecvTimeout (): int public function getState (): int public function isRecoverable (): bool publi ... const int EPHEMERALONLOCALSESSION = -120 ; const int NOWATCHER = -121 ; const int RECONFIGDISABLED = -122 ; } 定義済み定数 ZooKeeper Permissions Zookeeper::PERM_READ Can read nodes value and list its children Zookeeper::PERM_WRITE Can set the nodes value ... Zookeeper::PERM_CREATE Can create children Zookeeper::PERM_DELETE Can delete children Zookeeper::PERM_ADMIN Can execute set_acl() Zookeeper::PERM_ALL All of the above flags OR ...
-
https://man.mtool.work/php/8.3/class.zookeeper.html
- ZooKeeper | PHP 8.3 10650
- ZooKeeper はじめに This extension uses libzookeeper library to provide API for communicating with ZooKeeper service. ZooKeeper is an Apache project that enables centralized service for maintaining configuration information, naming, providin
... g distributed synchronization, and providing group services. インストール/設定 要件 インストール手順 実行時設定 ZooKeeper 関数 zookeeper_dispatch — Calls callbacks for pending operations Zookeeper — The Zookeeper class Zookeeper::addAuth — Spec ... ify application credentials Zookeeper::close — Close the zookeeper handle and free up any resources Zookeeper::connect — Create a handle used to communicate wit ... h zookeeper Zookeeper::__construct — Create a handle to used communicate with zookeeper Zookeeper::create — Create a node synchronousl ...
-
https://man.mtool.work/php/8.3/book.zookeeper.html
- zookeeper_dispatch — Calls callbacks for pending operations | PHP 8.3 9835
- zookeeper_dispatch (PECL zookeeper >= 0.4.0) zookeeper_dispatch — Calls callbacks for pending operations 説明 function zookeeper_dispatch (): void The zookeeper_dispatch() function calls the callbacks passed by operations like Zookeeper::ge
... t() or Zookeeper::exists() . 警告 Since version 0.4.0, this function must be called manually to achieve asynchronous operations. If you wan ... ありません。 戻り値 値を返しません。 エラー / 例外 This method emits PHP warning when callback could not be invoked. 例 例1 zookeeper_dispatch() example #1 Dispatch callbacks manually. <?php $client = new Zookeeper (); $client -> connect ( 'localhost:2181' ... ); $client -> get ( '/zookeeper' , function() { echo "Callback was called" . PHP_EOL ; }); while( true ) { sleep ( 1 ); zookeeper_dispatch (); } ?> 例2 zo ...
-
https://man.mtool.work/php/8.3/function.zookeeper-dispatch.html
- Zookeeper::getState — Get the state of the zookeeper connection | PHP 8.3 9328
- Zookeeper::getState (PECL zookeeper >= 0.1.0) Zookeeper::getState — Get the state of the zookeeper connection 説明 public function Zookeeper::getState (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the state of zookeeper
... nnection on success, and false on failure. エラー / 例外 This method emits PHP error/warning when it fails to get state of zookeeper connection. 警告 Since version 0.3.0, this method emits ZookeeperException and its derivatives. 参考 Zookeeper::__construc ... t() - Create a handle to used communicate with zookeeper Zookeeper::connect() - Create a handle used to communicate with zookeeper Zookeeper::getClientId() - Return the client ses ... sion id, only valid if the connections is currently connected (ie. last watcher state is ZOO_CONNECTED_STATE) ZooKeeper States ZookeeperException ...
-
https://man.mtool.work/php/8.3/zookeeper.getstate.html
- Zookeeper::getAcl — Gets the acl associated with a node synchronously | PHP 8.3 9067
- Zookeeper::getAcl (PECL zookeeper >= 0.1.0) Zookeeper::getAcl — Gets the acl associated with a node synchronously 説明 public function Zookeeper::getAcl ( string $path ): array パラメータ path The name of the node. Expressed as a file name
... warning when parameters count or types are wrong or fail to get ACL of a node. 警告 Since version 0.3.0, this method emits ZookeeperException and its derivatives. 例 例1 Zookeeper::getAcl() example Get ACL of a node. <?php $zookeeper = new Zookeeper ( 'lo ... calhost:2181' ); $aclArray = array( array( 'perms' => Zookeeper :: PERM_ALL , 'scheme' => 'world' , 'id' => 'anyone' , ) ); $path = '/path/to/newnode' ; $zookeeper -> setAcl ( $path , $a ... clArray ); $r = $zookeeper -> getAcl ( $path ); if ( $r ) var_dump ( $r ); else echo 'ERR' ; ?> 上の例の出力は以下となります。 array(1) { [0]=> array ...
-
https://man.mtool.work/php/8.3/zookeeper.getacl.html
- Zookeeper::getClientId — Return the client session id, only valid if the connec... 9067
- Zookeeper::getClientId (PECL zookeeper >= 0.1.0) Zookeeper::getClientId — Return the client session id, only valid if the connections is currently connected (ie. last watcher state is ZOO_CONNECTED_STATE) 説明 public function Zookeeper::get
... 外 This method emits PHP error/warning when it could not get client session id. 警告 Since version 0.3.0, this method emits ZookeeperException and its derivatives. 参考 Zookeeper::__construct() - Create a handle to used communicate with zookeeper Zookeeper ... ::connect() - Create a handle used to communicate with zookeeper Zookeeper::getState() - Get the state of the zookeeper connection ZooKeeper States ZookeeperException 他のマニュアルの関連 ...
-
https://man.mtool.work/php/8.3/zookeeper.getclientid.html
- Zookeeper::isRecoverable — Checks if the current zookeeper connection state can... 9067
- Zookeeper::isRecoverable (PECL zookeeper >= 0.1.0) Zookeeper::isRecoverable — Checks if the current zookeeper connection state can be recovered 説明 public function Zookeeper::isRecoverable (): bool The application must close the handle and
... ilure. エラー / 例外 This method emits PHP error/warning when operation fails. 警告 Since version 0.3.0, this method emits ZookeeperException and its derivatives. 参考 Zookeeper::__construct() - Create a handle to used communicate with zookeeper Zookeeper ... ::connect() - Create a handle used to communicate with zookeeper Zookeeper::getClientId() - Return the client session id, only valid if the connections is currently connected (ie. last wa ... tcher state is ZOO_CONNECTED_STATE) ZooKeeper States ZookeeperException 他のマニュアルの関連ページ DuckDB ODBC 101: A Duck Themed Guide to ODBC ...
-
https://man.mtool.work/php/8.3/zookeeper.isrecoverable.html
- Zookeeper::setDeterministicConnOrder — Enable/disable quorum endpoint order ran... 9067
- Zookeeper::setDeterministicConnOrder (PECL zookeeper >= 0.1.0) Zookeeper::setDeterministicConnOrder — Enable/disable quorum endpoint order randomization 説明 public static function Zookeeper::setDeterministicConnOrder ( bool $yesOrNo ): boo
... l If passed a true value, will make the client connect to quorum peers in the order as specified in the zookeeper_init() call. A false value causes zookeeper_init() to permute the peer endpoints which is good for more even client connec ... tion distribution among the quorum peers. ZooKeeper C Client uses false by default. パラメータ yesOrNo Disable/enable quorum endpoint order randomization. 戻り値 成功した場合 ... PHP error/warning when parameters count or types are wrong or operation fails. 警告 Since version 0.3.0, this method emits ZookeeperException and its derivatives. 参考 Zookeeper::__construct() - Create a handle to used communicate with zookeeper Zookeeper ...
-
https://man.mtool.work/php/8.3/zookeeper.setdeterministicconnorder.html
- Zookeeper::addAuth — Specify application credentials | PHP 8.3 9036
- Zookeeper::addAuth (PECL zookeeper >= 0.1.0) Zookeeper::addAuth — Specify application credentials 説明 public function Zookeeper::addAuth ( string $scheme , string $cert , callable $completion_cb = null ): bool The application calls this fu
... PHP error/warning when parameters count or types are wrong or operation fails. 警告 Since version 0.3.0, this method emits ZookeeperException and its derivatives. 例 例1 Zookeeper::addAuth() example Add auth before requesting node value. <?php $zookeeper ... = new Zookeeper ( 'localhost:2181' ); $path = '/path/to/node' ; $value = 'nodevalue' ; $zookeeper -> set ( $path , $value ); $zookeeper -> ... addAuth ( 'digest' , 'user0:passwd0' ); $r = $zookeeper -> get ( $path ); if ( $r ) echo $r ; else echo 'ERR' ; ?> 上の例の出力は以下となります。 nodevalue 参考 Zookeeper::create ...
-
https://man.mtool.work/php/8.3/zookeeper.addauth.html
- Zookeeper::close — Close the zookeeper handle and free up any resources | PHP 8... 9005
- Zookeeper::close (PECL zookeeper >= 0.5.0) Zookeeper::close — Close the zookeeper handle and free up any resources 説明 public function Zookeeper::close (): void パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 エラー
... / 例外 This method emits ZookeeperException and its derivatives when closing an uninitialized instance. 参考 Zookeeper::__construct() - Create a handle to us ... ed communicate with zookeeper Zookeeper::connect() - Create a handle used to communicate with zookeeper ZookeeperException ...
-
https://man.mtool.work/php/8.3/zookeeper.close.html