Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ctapmex/zkTreeUtil
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5
Choose a base ref
...
head repository: ctapmex/zkTreeUtil
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 9 commits
  • 5 files changed
  • 5 contributors

Commits on Aug 19, 2016

  1. Copy the full SHA
    3dd24a4 View commit details

Commits on Aug 24, 2016

  1. Copy the full SHA
    c967816 View commit details

Commits on Sep 4, 2016

  1. Merge pull request #2 from christofluethi/master

    line separation and readme
    ctapmex authored Sep 4, 2016
    Copy the full SHA
    f6da293 View commit details
  2. Merge pull request #3 from alexmbird/master

    Fix wrapper script so it's callable from anywhere
    ctapmex authored Sep 4, 2016
    Copy the full SHA
    a6f8460 View commit details

Commits on Sep 21, 2017

  1. Tab symbol is inserted only when node has no data or node is ephemeral

    radionoise authored and Daniil Molchanov committed Sep 21, 2017
    Copy the full SHA
    81b6368 View commit details

Commits on Oct 28, 2017

  1. Merge pull request #4 from radionoise/bugfix/remove-trailing-tab

    Tab symbol is inserted only when node has no data or node is ephemeral
    ctapmex authored Oct 28, 2017
    Copy the full SHA
    2df2e0b View commit details

Commits on Dec 16, 2020

  1. Bump zookeeper from 3.4.6 to 3.4.14

    Bumps zookeeper from 3.4.6 to 3.4.14.
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Dec 16, 2020
    Copy the full SHA
    61a39c2 View commit details

Commits on Aug 19, 2021

  1. Merge pull request #7 from ctapmex/dependabot/maven/org.apache.zookee…

    …per-zookeeper-3.4.14
    
    Bump zookeeper from 3.4.6 to 3.4.14
    ctapmex authored Aug 19, 2021
    Copy the full SHA
    f1a984c View commit details

Commits on Sep 11, 2021

  1. Update README.txt

    ctapmex authored Sep 11, 2021
    Copy the full SHA
    ff2d464 View commit details
Showing with 14 additions and 10 deletions.
  1. +1 −1 README.ru.txt
  2. +4 −2 README.txt
  3. +1 −1 pom.xml
  4. +4 −3 src/main/java/com/dobrunov/zktreeutil/zkExportToFile.java
  5. +4 −3 src/main/resources/bin/zktreeutil.sh
2 changes: 1 addition & 1 deletion README.ru.txt
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ usage: zkTreeUtil
a normal, empty directory)
-of,--output-file <filename> output file to which znode information
should be written
-xf,--output-xmlfile <filename> output xml-file to which znode
-ox,--output-xmlfile <filename> output xml-file to which znode
information should be written
-p,--path <znodepath> path to the zookeeper subtree rootnode.
-z,--zookeeper <zkhosts> zookeeper remote servers (ie
6 changes: 4 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
==========================================
No longer supported.

==========================================
zkTreeUtil - ZooKeeper Tree Utility
Author: Dobrunov Aleksey (ctapmex)
Homepage: https://github.com/ctapmex/zkTreeUtil
@@ -16,7 +18,7 @@ usage: zkTreeUtil
a normal, empty directory)
-of,--output-file <filename> output file to which znode information
should be written
-xf,--output-xmlfile <filename> output xml-file to which znode
-ox,--output-xmlfile <filename> output xml-file to which znode
information should be written
-p,--path <znodepath> path to the zookeeper subtree rootnode.
-z,--zookeeper <zkhosts> zookeeper remote servers (ie
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -118,7 +118,7 @@
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.4.6</version>
<version>3.4.14</version>
<exclusions>
<exclusion>
<groupId>com.sun.jmx</groupId>
7 changes: 4 additions & 3 deletions src/main/java/com/dobrunov/zktreeutil/zkExportToFile.java
Original file line number Diff line number Diff line change
@@ -53,18 +53,19 @@ private void writeFile() {
writer = new FileWriter(output_file);
for (TreeNode<zNode> znode : zktree) {
writer.write("path=" + start_znode + znode.data.path);
writer.write("\t");
if (znode.data.data != null && znode.data.data.length > 0) {
String str = new String(znode.data.data);
if (!str.equals("null")) {
writer.write("\t");
writer.write("val=" + str);
}
}
writer.write("\t");

if (znode.data.stat.getEphemeralOwner() != 0) {
writer.write("\t");
writer.write("type='ephemeral'");
}
writer.write("\r\n");
writer.write(System.lineSeparator());
}
writer.flush();
} catch (Exception e) {
7 changes: 4 additions & 3 deletions src/main/resources/bin/zktreeutil.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

echo Uadmin
#echo Uadmin

cp=".:../lib/*"
java -cp $cp com.dobrunov.zktreeutil.zkTreeUtilMain $@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cp="$DIR/../lib/*"
java -cp "$cp" com.dobrunov.zktreeutil.zkTreeUtilMain $@