| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
Zookeeper::create(PECL zookeeper >= 0.1.0) Zookeeper::create — Create a node synchronously. 説明
public
string Zookeeper::create
( string
$path
, string $value
, array $acls
[, int $flags = null
] )This method will create a node in ZooKeeper. A node can only be created if it does not already exists. The Create Flags affect the creation of nodes. If ZOO_EPHEMERAL flag is set, the node will automatically get removed if the client session goes away. If the ZOO_SEQUENCE flag is set, a unique monotonically increasing sequence number is appended to the path name. パラメータ
返り値Returns the path of the new node (this might be different than the supplied path because of the ZOO_SEQUENCE flag) on success, and false on failure. エラー / 例外This method emits PHP error/warning when parameters count or types are wrong or fail to create node. 警告
Since version 0.3.0, this method emits ZookeeperException and it's derivatives. 例例1 Zookeeper::create() example Create a new node.
<?php 上の例の出力は以下となります。 /path/to/newnode 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「Zookeeper::create - Create a node synchronously.」をGoogle検索
|