From 25190f70cd5cb19b528a7a37b450f665cd64efc6 Mon Sep 17 00:00:00 2001 From: Timandes White Date: Tue, 6 Nov 2018 02:16:35 +0000 Subject: [PATCH] docs: add more class constants git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345957 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/zookeeper/zookeeper.xml | 497 ++++++++++++++++++++++++++++++ 1 file changed, 497 insertions(+) diff --git a/reference/zookeeper/zookeeper.xml b/reference/zookeeper/zookeeper.xml index 9fc5d15f6e..09f20fe0e9 100644 --- a/reference/zookeeper/zookeeper.xml +++ b/reference/zookeeper/zookeeper.xml @@ -85,6 +85,19 @@ 31 + + const + integer + EPHEMERAL + 1 + + + const + integer + SEQUENCE + 2 + + const integer @@ -152,6 +165,225 @@ NOTCONNECTED_STATE 999 + + + const + integer + CREATED_EVENT + 1 + + + const + integer + DELETED_EVENT + 2 + + + const + integer + CHANGED_EVENT + 3 + + + const + integer + CHILD_EVENT + 4 + + + const + integer + SESSION_EVENT + -1 + + + const + integer + NOTWATCHING_EVENT + -2 + + + + const + integer + SYSTEMERROR + -1 + + + const + integer + RUNTIMEINCONSISTENCY + -2 + + + const + integer + DATAINCONSISTENCY + -3 + + + const + integer + CONNECTIONLOSS + -4 + + + const + integer + MARSHALLINGERROR + -5 + + + const + integer + UNIMPLEMENTED + -6 + + + const + integer + OPERATIONTIMEOUT + -7 + + + const + integer + BADARGUMENTS + -8 + + + const + integer + INVALIDSTATE + -9 + + + const + integer + NEWCONFIGNOQUORUM + -13 + + + const + integer + RECONFIGINPROGRESS + -14 + + + + const + integer + OK + 0 + + + const + integer + APIERROR + -100 + + + const + integer + NONODE + -101 + + + const + integer + NOAUTH + -102 + + + const + integer + BADVERSION + -103 + + + const + integer + NOCHILDRENFOREPHEMERALS + -108 + + + const + integer + NODEEXISTS + -110 + + + const + integer + NOTEMPTY + -111 + + + const + integer + SESSIONEXPIRED + -112 + + + const + integer + INVALIDCALLBACK + -113 + + + const + integer + INVALIDACL + -114 + + + const + integer + AUTHFAILED + -115 + + + const + integer + CLOSING + -116 + + + const + integer + NOTHING + -117 + + + const + integer + SESSIONMOVED + -118 + + + const + integer + NOTREADONLY + -119 + + + const + integer + EPHEMERALONLOCALSESSION + -120 + + + const + integer + NOWATCHER + -121 + + + const + integer + RECONFIGDISABLED + -122 + @@ -209,6 +441,27 @@ + +
+ <acronym>ZooKeeper</acronym> 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. + + + +
+ +
<acronym>ZooKeeper</acronym> Log Levels @@ -295,6 +548,250 @@
+ +
+ <acronym>ZooKeeper</acronym> Watch Types + + + + Zookeeper::CREATED_EVENT + + A node has been created + This is only generated by watches on non-existent nodes. These watches are set using Zookeeper::exists. + + + + Zookeeper::DELETED_EVENT + + A node has been deleted + This is only generated by watches on nodes. These watches are set using Zookeeper::exists and Zookeeper::get. + + + + Zookeeper::CHANGED_EVENT + + A node has changed + This is only generated by watches on nodes. These watches are set using Zookeeper::exists and Zookeeper::get. + + + + Zookeeper::CHILD_EVENT + + A change as occurred in the list of children + This is only generated by watches on the child list of a node. These watches are set using Zookeeper::getChildren. + + + + Zookeeper::SESSION_EVENT + + A session has been lost + This is generated when a client loses contact or reconnects with a server. + + + + Zookeeper::NOTWATCHING_EVENT + + A watch has been removed + This is generated when the server for some reason, probably a resource constraint, will no longer watch a node for a client. + + + + +
+ + + +
+ <acronym>ZooKeeper</acronym> System and Server-side Errors + + + Zookeeper::SYSTEMERROR + + This is never thrown by the server, it shouldn't be used other than to indicate a range. Specifically error codes greater than this value, but lesser than Zookeeper::APIERROR, are system errors. + + + + Zookeeper::RUNTIMEINCONSISTENCY + + A runtime inconsistency was found. + + + + Zookeeper::DATAINCONSISTENCY + + A data inconsistency was found. + + + + Zookeeper::CONNECTIONLOSS + + Connection to the server has been lost. + + + + Zookeeper::MARSHALLINGERROR + + Error while marshalling or unmarshalling data. + + + + Zookeeper::UNIMPLEMENTED + + Operation is unimplemented. + + + + Zookeeper::OPERATIONTIMEOUT + + Operation timeout. + + + + Zookeeper::BADARGUMENTS + + Invalid arguments. + + + + Zookeeper::INVALIDSTATE + + Invliad zhandle state. + + + + Zookeeper::NEWCONFIGNOQUORUM + + No quorum of new config is connected and up-to-date with the leader of last commmitted config - try invoking reconfiguration after new servers are connected and synced. + Available as of ZooKeeper 3.5.0 + + + + Zookeeper::RECONFIGINPROGRESS + + Reconfiguration requested while another reconfiguration is currently in progress. This is currently not supported. Please retry. + Available as of ZooKeeper 3.5.0 + + + +
+ + + +
+ <acronym>ZooKeeper</acronym> API Errors + + + Zookeeper::APIERROR + + This is never thrown by the server, it shouldn't be used other than to indicate a range. Specifically error codes greater than this value are API errors (while values less than this indicate a Zookeeper::SYSTEMERROR). + + + + Zookeeper::NONODE + + Node does not exist. + + + + Zookeeper::NOAUTH + + Not authenticated. + + + + Zookeeper::BADVERSION + + Version conflict. + + + + Zookeeper::NOCHILDRENFOREPHEMERALS + + Ephemeral nodes may not have children. + + + + Zookeeper::NODEEXISTS + + The node already exists. + + + + Zookeeper::NOTEMPTY + + The node has children. + + + + Zookeeper::SESSIONEXPIRED + + The session has been expired by the server. + + + + Zookeeper::INVALIDCALLBACK + + Invalid callback specified. + + + + Zookeeper::INVALIDACL + + Invalid ACL specified. + + + + Zookeeper::AUTHFAILED + + Client authentication failed. + + + + Zookeeper::CLOSING + + ZooKeeper is closing. + + + + Zookeeper::NOTHING + + (not error) No server responses to process. + + + + Zookeeper::SESSIONMOVED + + Session moved to another server, so operation is ignored. + + + + Zookeeper::NOTREADONLY + + State-changing request is passed to read-only server. + + + + Zookeeper::EPHEMERALONLOCALSESSION + + Attempt to create ephemeral node on a local session. + + + + Zookeeper::NOWATCHER + + The watcher couldn't be found. + + + + Zookeeper::RECONFIGDISABLED + + Attempts to perform a reconfiguration operation when reconfiguration feature is disabled. + + + +
+ +