@Test void testGetAllChildren() { ZkUtils.setToZk(curatorFramework, "/all/test1/a", "a".getBytes()); ZkUtils.setToZk(curatorFramework, "/all/test1/b", "b".getBytes()); ZkUtils.setToZk(curatorFramework, "/all/test1/b/c", "c".getBytes()); ZkUtils.setToZk(curatorFramework, "/all/test1/b/c/c1", "c1".getBytes()); ZkUtils.setToZk(curatorFramework, "/all/test1/b/c/c2", "c2".getBytes()); getAllChildren(curatorFramework, "/all/test1").forEach(System.out::println); assertEquals(5, getAllChildren(curatorFramework, "/all/test1").count()); System.out.println("no end /"); getAllChildren(curatorFramework, "/all/test1/").forEach(System.out::println); assertEquals(5, getAllChildren(curatorFramework, "/all/test1").count()); System.out.println("no path"); getAllChildren(curatorFramework, "/all/xyz/").forEach(System.out::println); assertEquals(0, getAllChildren(curatorFramework, "/all/xyz/").count()); }
public static Stream<String> getAllChildren(CuratorFramework curator, String parentPath) { String parentPath0 = removeEnd(parentPath, "/"); return getAllChildren0(curator, parentPath0).map(p -> removeStart(p, parentPath0)); }
ZkUtils { public static Stream<String> getAllChildren(CuratorFramework curator, String parentPath) { String parentPath0 = removeEnd(parentPath, "/"); return getAllChildren0(curator, parentPath0).map(p -> removeStart(p, parentPath0)); } }
ZkUtils { public static Stream<String> getAllChildren(CuratorFramework curator, String parentPath) { String parentPath0 = removeEnd(parentPath, "/"); return getAllChildren0(curator, parentPath0).map(p -> removeStart(p, parentPath0)); } private  ZkUtils(); }
ZkUtils { public static Stream<String> getAllChildren(CuratorFramework curator, String parentPath) { String parentPath0 = removeEnd(parentPath, "/"); return getAllChildren0(curator, parentPath0).map(p -> removeStart(p, parentPath0)); } private  ZkUtils(); static String getStringFromZk(CuratorFramework client, String path); static byte[] getBytesFromZk(CuratorFramework client, String path); static T getFromZk(CuratorFramework client, String path,
            ThrowableFunction<byte[], T, X> decoder); static void setToZk(CuratorFramework client, String path, byte[] value); @Deprecated static void setToZk(CuratorFramework client, String path, byte[] value,
            CreateMode createMode); static EphemeralNode createEphemeralNode(CuratorFramework client, String path,
            byte[] value); static void removeFromZk(CuratorFramework client, String path); static void removeFromZk(CuratorFramework client, String path,
            boolean recruitDeletedChildren); static void changeZkValue(CuratorFramework client, String path,
            Function<T, T> changeFunction, Function<byte[], T> decoder,
            Function<T, byte[]> encoder); static boolean changeZkValue(CuratorFramework client, String path,
            Function<byte[], byte[]> changeFunction, int retryTimes, long retryWait); static Stream<ChildData> getAllChildrenWithData(CuratorFramework curator, String parentPath); static Stream<String> getAllChildren(CuratorFramework curator, String parentPath); }
ZkUtils { public static Stream<String> getAllChildren(CuratorFramework curator, String parentPath) { String parentPath0 = removeEnd(parentPath, "/"); return getAllChildren0(curator, parentPath0).map(p -> removeStart(p, parentPath0)); } private  ZkUtils(); static String getStringFromZk(CuratorFramework client, String path); static byte[] getBytesFromZk(CuratorFramework client, String path); static T getFromZk(CuratorFramework client, String path,
            ThrowableFunction<byte[], T, X> decoder); static void setToZk(CuratorFramework client, String path, byte[] value); @Deprecated static void setToZk(CuratorFramework client, String path, byte[] value,
            CreateMode createMode); static EphemeralNode createEphemeralNode(CuratorFramework client, String path,
            byte[] value); static void removeFromZk(CuratorFramework client, String path); static void removeFromZk(CuratorFramework client, String path,
            boolean recruitDeletedChildren); static void changeZkValue(CuratorFramework client, String path,
            Function<T, T> changeFunction, Function<byte[], T> decoder,
            Function<T, byte[]> encoder); static boolean changeZkValue(CuratorFramework client, String path,
            Function<byte[], byte[]> changeFunction, int retryTimes, long retryWait); static Stream<ChildData> getAllChildrenWithData(CuratorFramework curator, String parentPath); static Stream<String> getAllChildren(CuratorFramework curator, String parentPath);  }