The Zookeeper class
(PECL zookeeper >= 0.1.0)
はじめに
Represents ZooKeeper session.
クラス概要
定義済み定数
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 ORd together
ZooKeeper Create Flags
Zookeeper::EPHEMERAL
-
If Zookeeper::EPHEMERAL flag is set, the node will automatically get removed if the client session goes away.
Zookeeper::SEQUENCE
-
If the Zookeeper::SEQUENCE flag is set, a unique monotonically increasing sequence number is appended to the path name. The sequence number is always fixed length of 10 digits, 0 padded.
ZooKeeper Log Levels
Zookeeper::LOG_LEVEL_ERROR
-
Outputs only error mesages
Zookeeper::LOG_LEVEL_WARN
-
Outputs errors/warnings
Zookeeper::LOG_LEVEL_INFO
-
Outputs big action messages besides errors/warnings
Zookeeper::LOG_LEVEL_DEBUG
-
Outputs all
ZooKeeper States
Zookeeper::EXPIRED_SESSION_STATE
-
Connected but session expired
Zookeeper::AUTH_FAILED_STATE
-
Connected but auth failed