diff --git a/README_packaging.md b/README_packaging.md index ea54e963567..2ccbba6bdf0 100644 --- a/README_packaging.md +++ b/README_packaging.md @@ -65,26 +65,3 @@ The compiled C client can be found here: - `zookeeper-client/zookeeper-client-c/target/c/include/zookeeper` - Native library headers The same folders gets archived to the `zookeeper-assembly/target/apache-zookeeper--lib.tar.gz` file, assuming you activated the `full-build` maven profile. - -## Package build command (using ant) - -**Command to build tarball package:** `ant tar` - -`zookeeper-.tar.gz` tarball file structure layout: - -- `/bin` - User executable -- `/sbin` - System executable -- `/libexec` - Configuration boot trap script -- `/lib` - Library dependencies -- `/docs` - Documents -- `/share/zookeeper` - Project files - - -**Command to build tarball package with native components:** `ant package-native tar` - -`zookeeper--lib.tar.gz` tarball file structure layout: - -- `/bin` - User executable -- `/lib` - Native libraries -- `/include/zookeeper` - Native library headers - diff --git a/build.xml b/build.xml deleted file mode 100644 index da4ab2e0c9a..00000000000 --- a/build.xml +++ /dev/null @@ -1,2003 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The version is ${zookeeper-pom.version} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Running ${test.junit.threads} concurrent JUnit processes. - - - - - - - - - - - - - - - - - - - - - - Tests failed! - - - - Running single JUnit process. Upgrade to Ant 1.9.4 or later to run multiple JUnit processes. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Clover not found. - Please make sure clover-${clover.version}.jar is in ${clover.home}/lib, or made available - to Ant using other mechanisms like -lib or CLASSPATH. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ivy.xml b/ivy.xml deleted file mode 100644 index 3797845f12a..00000000000 --- a/ivy.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - - - ZooKeeper - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ivysettings.xml b/ivysettings.xml deleted file mode 100644 index 1d06c403cee..00000000000 --- a/ivysettings.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/zookeeper-assembly/src/main/assembly/source-package.xml b/zookeeper-assembly/src/main/assembly/source-package.xml index 8135e623244..15a5c68df79 100644 --- a/zookeeper-assembly/src/main/assembly/source-package.xml +++ b/zookeeper-assembly/src/main/assembly/source-package.xml @@ -107,9 +107,6 @@ . pom.xml - build.xml - ivy.xml - ivysettings.xml excludeFindBugsFilter.xml owaspSuppressions.xml checktyle.xml diff --git a/zookeeper-server/src/main/resources/lib/cobertura/README.txt b/zookeeper-server/src/main/resources/lib/cobertura/README.txt deleted file mode 100644 index f5ba88f1feb..00000000000 --- a/zookeeper-server/src/main/resources/lib/cobertura/README.txt +++ /dev/null @@ -1,3 +0,0 @@ -Download the cobertura binary from the following location and unpack it into this directory. Run "cobertura-report" target from build.xml to generate coverage report. - -http://cobertura.sourceforge.net/download.html diff --git a/zookeeper-server/src/main/resources/lib/jdiff/zookeeper_3.1.1.xml b/zookeeper-server/src/main/resources/lib/jdiff/zookeeper_3.1.1.xml deleted file mode 100644 index c28b238b86a..00000000000 --- a/zookeeper-server/src/main/resources/lib/jdiff/zookeeper_3.1.1.xml +++ /dev/null @@ -1,2717 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  • --short - prints a short version string "1.2.3" -
  • --revision - prints a short version string with the SVN - repository revision "1.2.3-94" -
  • --full - prints the revision and the build date - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The client object will pick an arbitrary server and try to connect to it. - If failed, it will try the next one in the list, until a connection is - established, or all the servers have been tried. - - @param host - comma separated host:port pairs, each corresponding to a zk - server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002" - @param sessionTimeout - session timeout in milliseconds - @param watcher - a watcher object which will be notified of state changes, may - also be notified for node events - - @throws IOException in cases of network failure]]> - - - - - - - The client object will pick an arbitrary server and try to connect to it. - If failed, it will try the next one in the list, until a connection is - established, or all the servers have been tried. -

    - Use {@link #getSessionId} and {@link #getSessionPasswd} on an established - client connection, these values must be passed as sessionId and - sessionPasswd respectively if reconnecting. Otherwise, if not - reconnecting, use the other constructor which does not require these - parameters. - - @param host - comma separated host:port pairs, each corresponding to a zk - server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002" - @param sessionTimeout - session timeout in milliseconds - @param watcher - a watcher object which will be notified of state changes, may - also be notified for node events - @param sessionId - specific session id to use if reconnecting - @param sessionPasswd - password for this session - - @throws IOException in cases of network failure]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The flags argument specifies whether the created node will be ephemeral - or not. -

    - An ephemeral node will be removed by the ZooKeeper automatically when the - session associated with the creation of the node expires. -

    - The flags argument can also specify to create a sequential node. The - actual path name of a sequential node will be the given path plus a - suffix "_i" where i is the current sequential number of the node. Once - such a node is created, the sequential number will be incremented by one. -

    - If a node with the same actual path already exists in the ZooKeeper, a - KeeperException with error code KeeperException.NodeExists will be - thrown. Note that since a different actual path is used for each - invocation of creating sequential node with the same path argument, the - call will never throw "file exists" KeeperException. -

    - If the parent node does not exist in the ZooKeeper, a KeeperException - with error code KeeperException.NoNode will be thrown. -

    - An ephemeral node cannot have children. If the parent node of the given - path is ephemeral, a KeeperException with error code - KeeperException.NoChildrenForEphemerals will be thrown. -

    - This operation, if successful, will trigger all the watches left on the - node of the given path by exists and getData API calls, and the watches - left on the parent node by getChildren API calls. -

    - If a node is created successfully, the ZooKeeper server will trigger the - watches on the path left by exists calls, and the watches on the parent - of the node by getChildren calls. -

    - The maximum allowable size of the data array is 1 MB (1,048,576 bytes). - Arrays larger than this will cause a KeeperExecption to be thrown. - - @param path - the path for the node - @param data - the initial data for the node - @param acl - the acl for the node - @param flags - specifying whether the node to be created is ephemeral - and/or sequential - @return the actual path of the created node - @throws KeeperException if the server returns a non-zero error code - @throws org.apache.zookeeper.KeeperException.InvalidACLException if the ACL is invalid - @throws InterruptedException if the transaction is interrupted - @throws IllegalArgumentException if an invalid path is specified]]> - - - - - - - - - - - - - - - - - - , CreateMode)]]> - - - - - - - - - - A KeeperException with error code KeeperException.NoNode will be thrown - if the nodes does not exist. -

    - A KeeperException with error code KeeperException.BadVersion will be - thrown if the given version does not match the node's version. -

    - A KeeperException with error code KeeperException.NotEmpty will be thrown - if the node has children. -

    - This operation, if successful, will trigger all the watches on the node - of the given path left by exists API calls, and the watches on the parent - node left by getChildren API calls. - - @param path - the path of the node to be deleted. - @param version - the expected node version. - @throws InterruptedException IF the server transaction is interrupted - @throws KeeperException If the server signals an error with a non-zero return code. - @throws IllegalArgumentException if an invalid path is specified]]> - - - - - - - - - - - - - - - - - - - If the watch is non-null and the call is successful (no exception is thrown), - a watch will be left on the node with the given path. The watch will be - triggered by a successful operation that creates/delete the node or sets - the data on the node. - - @param path the node path - @param watcher explicit watcher - @return the stat of the node of the given path; return null if no such a - node exists. - @throws KeeperException If the server signals an error - @throws InterruptedException If the server transaction is interrupted. - @throws IllegalArgumentException if an invalid path is specified]]> - - - - - - - - - - If the watch is true and the call is successful (no exception is thrown), - a watch will be left on the node with the given path. The watch will be - triggered by a successful operation that creates/delete the node or sets - the data on the node. - - @param path - the node path - @param watch - whether need to watch this node - @return the stat of the node of the given path; return null if no such a - node exists. - @throws KeeperException If the server signals an error - @throws InterruptedException If the server transaction is interrupted.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - If the watch is non-null and the call is successful (no exception is - thrown), a watch will be left on the node with the given path. The watch - will be triggered by a successful operation that sets data on the node, or - deletes the node. -

    - A KeeperException with error code KeeperException.NoNode will be thrown - if no node with the given path exists. - - @param path the given path - @param watcher explicit watcher - @param stat the stat of the node - @return the data of the node - @throws KeeperException If the server signals an error with a non-zero error code - @throws InterruptedException If the server transaction is interrupted. - @throws IllegalArgumentException if an invalid path is specified]]> - - - - - - - - - - - If the watch is true and the call is successful (no exception is - thrown), a watch will be left on the node with the given path. The watch - will be triggered by a successful operation that sets data on the node, or - deletes the node. -

    - A KeeperException with error code KeeperException.NoNode will be thrown - if no node with the given path exists. - - @param path the given path - @param watch whether need to watch this node - @param stat the stat of the node - @return the data of the node - @throws KeeperException If the server signals an error with a non-zero error code - @throws InterruptedException If the server transaction is interrupted.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This operation, if successful, will trigger all the watches on the node - of the given path left by getData calls. -

    - A KeeperException with error code KeeperException.NoNode will be thrown - if no node with the given path exists. -

    - A KeeperException with error code KeeperException.BadVersion will be - thrown if the given version does not match the node's version. -

    - The maximum allowable size of the data array is 1 MB (1,048,576 bytes). - Arrays larger than this will cause a KeeperExecption to be thrown. - - @param path - the path of the node - @param data - the data to set - @param version - the expected matching version - @return the state of the node - @throws InterruptedException If the server transaction is interrupted. - @throws KeeperException If the server signals an error with a non-zero error code. - @throws IllegalArgumentException if an invalid path is specified]]> - - - - - - - - - - - - - - - - - - - - A KeeperException with error code KeeperException.NoNode will be thrown - if no node with the given path exists. - - @param path - the given path for the node - @param stat - the stat of the node will be copied to this parameter. - @return the ACL array of the given node. - @throws InterruptedException If the server transaction is interrupted. - @throws KeeperException If the server signals an error with a non-zero error code. - @throws IllegalArgumentException if an invalid path is specified]]> - - - - - - - - - - - - - - - - - - - - A KeeperException with error code KeeperException.NoNode will be thrown - if no node with the given path exists. -

    - A KeeperException with error code KeeperException.BadVersion will be - thrown if the given version does not match the node's version. - - @param path - @param acl - @param version - @return the stat of the node. - @throws InterruptedException If the server transaction is interrupted. - @throws KeeperException If the server signals an error with a non-zero error code. - @throws org.apache.zookeeper.KeeperException.InvalidACLException If the acl is invalide. - @throws IllegalArgumentException if an invalid path is specified]]> - - - - - - - - - - - - - - - - - - - - If the watch is non-null and the call is successful (no exception is thrown), - a watch will be left on the node with the given path. The watch willbe - triggered by a successful operation that deletes the node of the given - path or creates/delete a child under the node. -

    - The list of children returned is not sorted and no guarantee is provided - as to its natural or lexical order. -

    - A KeeperException with error code KeeperException.NoNode will be thrown - if no node with the given path exists. - - @param path - @param watcher explicit watcher - @return an unordered array of children of the node with the given path - @throws InterruptedException If the server transaction is interrupted. - @throws KeeperException If the server signals an error with a non-zero error code. - @throws IllegalArgumentException if an invalid path is specified]]> - - - - - - - - - - If the watch is true and the call is successful (no exception is thrown), - a watch will be left on the node with the given path. The watch willbe - triggered by a successful operation that deletes the node of the given - path or creates/delete a child under the node. -

    - The list of children returned is not sorted and no guarantee is provided - as to its natural or lexical order. -

    - A KeeperException with error code KeeperException.NoNode will be thrown - if no node with the given path exists. - - @param path - @param watch - @return an unordered array of children of the node with the given path - @throws InterruptedException If the server transaction is interrupted. - @throws KeeperException If the server signals an error with a non-zero error code.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Once a connection to a server is established, a session ID is assigned to the - client. The client will send heart beats to the server periodically to keep - the session valid. -

    - The application can call ZooKeeper APIs through a client as long as the - session ID of the client remains valid. -

    - If for some reason, the client fails to send heart beats to the server for a - prolonged period of time (exceeding the sessionTimeout value, for instance), - the server will expire the session, and the session ID will become invalid. - The client object will no longer be usable. To make ZooKeeper API calls, the - application must create a new client object. -

    - If the ZooKeeper server the client currently connects to fails or otherwise - does not respond, the client will automatically try to connect to another - server before its session ID expires. If successful, the application can - continue to use the client. -

    - Some successful ZooKeeper API calls can leave watches on the "data nodes" in - the ZooKeeper server. Other successful ZooKeeper API calls can trigger those - watches. Once a watch is triggered, an event will be delivered to the client - which left the watch at the first place. Each watch can be triggered only - once. Thus, up to one event will be delivered to a client for every watch it - leaves. -

    - A client needs an object of a class implementing Watcher interface for - processing the events delivered to the client. - - When a client drops current connection and re-connects to a server, all the - existing watches are considered as being triggered but the undelivered events - are lost. To emulate this, the client will generate a special event to tell - the event handler a connection has been dropped. This special event has type - EventNone and state sKeeperStateDisconnected.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -