| commit | e0890d0a79372be9c74b6d3f9314d693a89d255c | [log] [tgz] |
|---|---|---|
| author | Kezhu Wang <kezhuw@gmail.com> | Sat Sep 02 23:49:21 2023 +0800 |
| committer | GitHub <noreply@github.com> | Sat Sep 02 17:49:21 2023 +0200 |
| tree | c8fefbf095078f993401e73f0b82d1592715bb63 | |
| parent | 03a36d08e257c43e8377e5549d5524805fc6b8bb [diff] |
ZOOKEEPER-4697: Add Builder to construct ZooKeeper and ZooKeeperAdmin (#2001) * ZOOKEEPER-4697: Add Builder to construct ZooKeeper and its derivations Currently, there are 10 constructor variants for `ZooKeeper` and 4 for `ZooKeeperAdmin`. It is enough for us to resort to a builder. The `build` method throws `IOException` to make it a drop-in replacement of existing constructors of `ZooKeeper`. This pr also unify body of `ZooKeeper` constructor to one. Previously, there are diverged to two. One has `sessionId` and `sessionPasswd`, and another doesn't have. This pr uses `sessionId == 0` to differentiate the two as it is used in server side to differentiate session create and reconnect. * Restrict Builder to only ZooKeeper and ZooKeeperAdmin
For the latest information about Apache ZooKeeper, please visit our website at:
and our wiki, at:
https://cwiki.apache.org/confluence/display/ZOOKEEPER
Either downloaded from https://zookeeper.apache.org/releases.html or found in zookeeper-assembly/target directory after building the project with maven.
apache-zookeeper-[version].tar.gz
Contains all the source files which can be built by running:
mvn clean install
To generate an aggregated apidocs for zookeeper-server and zookeeper-jute:
mvn javadoc:aggregate
(generated files will be at target/site/apidocs)
apache-zookeeper-[version]-bin.tar.gz
Contains all the jar files required to run ZooKeeper
Full documentation can also be found in the docs folder
As of version 3.5.5, the parent, zookeeper and zookeeper-jute artifacts are deployed to the central repository after the release is voted on and approved by the Apache ZooKeeper PMC:
https://repo1.maven.org/maven2/org/apache/zookeeper/zookeeper
If you are going to compile with Java 1.8, you should use a recent release at u211 or above.
We always welcome new contributors to the project! See How to Contribute for details on how to submit patches as pull requests and other aspects of our contribution workflow.