ZooKeeper::Constants
A class for importing the ZooKeeper C library's enums. Also contains the library's zerror function for retriving string representations of error codes.
By default ZooKeeper::Constants imports all enums into a package. Individual enums can also be exported, along with an export tag for classes of enums
Error codes returned by the ZooKeeper C library. Includes the zerror function for returning a string corresponding to the error code.
zerror ZOK ZSYSTEMERROR ZRUNTIMEINCONSISTENCY ZDATAINCONSISTENCY ZCONNECTIONLOSS ZMARSHALLINGERROR ZUNIMPLEMENTED ZOPERATIONTIMEOUT ZBADARGUMENTS ZINVALIDSTATE ZAPIERROR ZNONODE ZNOAUTH ZBADVERSION ZNOCHILDRENFOREPHEMERALS ZNODEEXISTS ZNOTEMPTY ZSESSIONEXPIRED ZINVALIDCALLBACK ZINVALIDACL ZAUTHFAILED ZCLOSING ZNOTHING
Flags that may be used during node creation.
ZOO_EPHEMERAL ZOO_SEQUENCE
ACL permissions that may be used for a nodes ACLs
ZOO_PERM_READ ZOO_PERM_WRITE ZOO_PERM_CREATE ZOO_PERM_DELETE ZOO_PERM_ADMIN ZOO_PERM_ALL
A predefined set of ACLs.
ACLs can also be constructed manually, as an arrayref of hashrefs, where hashrefs include keys for id, scheme, and perms.
ZOO_OPEN_ACL_UNSAFE ZOO_READ_ACL_UNSAFE ZOO_CREATOR_ALL_ACL
Possible ZooKeeper event types. These are used for the type key of the event hashref, passed to ZooKeeper watcher callbacks.
ZOO_CREATED_EVENT ZOO_DELETED_EVENT ZOO_CHANGED_EVENT ZOO_CHILD_EVENT ZOO_SESSION_EVENT ZOO_NOTWATCHING_EVENT
Possible ZooKeeper connection states. These are used for the state key of the event hashref, passed to ZooKeeper watcher callbacks.
ZOO_EXPIRED_SESSION_STATE ZOO_AUTH_FAILED_STATE ZOO_CONNECTING_STATE ZOO_ASSOCIATING_STATE ZOO_CONNECTED_STATE
To install ZooKeeper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ZooKeeper
CPAN shell
perl -MCPAN -e shell install ZooKeeper
For more information on module installation, please visit the detailed CPAN module installation guide.