Notes:
The code bellow let you create a facade of the current CuratorFramework instance that uses a specific namespace.
The namespace is a relative path to the root path of the current CuratorFramework instance (default "/
").
The namespace can be "null
", which means that the path will be the same as the root path of the current CuratorFramework instance (default "/
").
The namespcae should not start or end with "/
"
For example, if your namespace is "abc/abc1
", then the relative path will be "/abc/abc1
" and you will access only zNodes under this path.
In order for the code bellow to work:
► Make sure to update the "CONNECT_STRING
" variable with your information.