(PECL zookeeper >= 0.1.0)
Represents ZooKeeper session.
Zookeeper::PERM_READCan read nodes value and list its children
Zookeeper::PERM_WRITECan set the nodes value
Zookeeper::PERM_CREATECan create children
Zookeeper::PERM_DELETECan delete children
Zookeeper::PERM_ADMINCan execute set_acl()
Zookeeper::PERM_ALLAll of the above flags ORd together
Zookeeper::EPHEMERALIf Zookeeper::EPHEMERAL flag is set, the node will automatically get removed if the client session goes away.
Zookeeper::SEQUENCEIf 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_LEVEL_ERROROutputs only error mesages
Zookeeper::LOG_LEVEL_WARNOutputs errors/warnings
Zookeeper::LOG_LEVEL_INFOOutputs big action messages besides errors/warnings
Zookeeper::LOG_LEVEL_DEBUGOutputs all
Zookeeper::EXPIRED_SESSION_STATEConnected but session expired
Zookeeper::AUTH_FAILED_STATEConnected but auth failed
Zookeeper::CONNECTING_STATEConnecting
Zookeeper::ASSOCIATING_STATEAssociating
Zookeeper::CONNECTED_STATEConnected
Zookeeper::READONLY_STATETODO: help us improve this extension.
Zookeeper::NOTCONNECTED_STATEConnection failed
Zookeeper::CREATED_EVENTA node has been created
This is only generated by watches on non-existent nodes. These watches are set using Zookeeper::exists.
Zookeeper::DELETED_EVENTA node has been deleted
This is only generated by watches on nodes. These watches are set using Zookeeper::exists and Zookeeper::get.
Zookeeper::CHANGED_EVENTA node has changed
This is only generated by watches on nodes. These watches are set using Zookeeper::exists and Zookeeper::get.
Zookeeper::CHILD_EVENTA 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_EVENTA session has been lost
This is generated when a client loses contact or reconnects with a server.
Zookeeper::NOTWATCHING_EVENTA 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.
Zookeeper::SYSTEMERRORThis 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::RUNTIMEINCONSISTENCYA runtime inconsistency was found.
Zookeeper::DATAINCONSISTENCYA data inconsistency was found.
Zookeeper::CONNECTIONLOSSConnection to the server has been lost.
Zookeeper::MARSHALLINGERRORError while marshalling or unmarshalling data.
Zookeeper::UNIMPLEMENTEDOperation is unimplemented.
Zookeeper::OPERATIONTIMEOUTOperation timeout.
Zookeeper::BADARGUMENTSInvalid arguments.
Zookeeper::INVALIDSTATEInvalid zhandle state.
Zookeeper::NEWCONFIGNOQUORUMNo quorum of new config is connected and up-to-date with the leader of last committed config - try invoking reconfiguration after new servers are connected and synced.
Available as of ZooKeeper 3.5.0
Zookeeper::RECONFIGINPROGRESSReconfiguration requested while another reconfiguration is currently in progress. This is currently not supported. Please retry.
Available as of ZooKeeper 3.5.0
Zookeeper::OKEverything is OK.
Zookeeper::APIERRORThis 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::NONODENode does not exist.
Zookeeper::NOAUTHNot authenticated.
Zookeeper::BADVERSIONVersion conflict.
Zookeeper::NOCHILDRENFOREPHEMERALSEphemeral nodes may not have children.
Zookeeper::NODEEXISTSThe node already exists.
Zookeeper::NOTEMPTYThe node has children.
Zookeeper::SESSIONEXPIREDThe session has been expired by the server.
Zookeeper::INVALIDCALLBACKInvalid callback specified.
Zookeeper::INVALIDACLInvalid ACL specified.
Zookeeper::AUTHFAILEDClient authentication failed.
Zookeeper::CLOSINGZooKeeper is closing.
Zookeeper::NOTHING(not error) No server responses to process.
Zookeeper::SESSIONMOVEDSession moved to another server, so operation is ignored.
Zookeeper::NOTREADONLYState-changing request is passed to read-only server.
Zookeeper::EPHEMERALONLOCALSESSIONAttempt to create ephemeral node on a local session.
Zookeeper::NOWATCHERThe watcher couldn't be found.
Zookeeper::RECONFIGDISABLEDAttempts to perform a reconfiguration operation when reconfiguration feature is disabled.