The code bellow let you print all direct zNodes (children) under a specific path.
Calling the method "CuratorFramework::getChildren"
will return a list of zNode names (List<String>).
If the path doesn't exist it will throw an exception:
In order for the code bellow to work:
► Make sure to update the "CONNECT_STRING" variable with your information.
Example
Here's an example of how to list all zNodes under a specific path: