Exemplo n.º 1
0
 internal static void CreateEphemeralPath(IZooKeeperClient zkClient, string path, string data)
 {
     try
     {
         zkClient.CreateEphemeral(path, data);
     }
     catch (KeeperException.NoNodeException)
     {
         ZkUtils.CreateParentPath(zkClient, path);
         zkClient.CreateEphemeral(path, data);
     }
 }
Exemplo n.º 2
0
 internal static void CreateEphemeralPath(IZooKeeperClient zkClient, string path, string data)
 {
     try
     {
         zkClient.CreateEphemeral(path, data);
     }
     catch (KeeperException.NoNodeException)
     {
         ZkUtils.CreateParentPath(zkClient, path);
         zkClient.CreateEphemeral(path, data);
     }
 }
Exemplo n.º 3
0
 internal static void CreateEphemeralPath(IZooKeeperClient zkClient, string path, string data)
 {
     try
     {
         zkClient.CreateEphemeral(path, data);
     }
     catch (KeeperException e)
     {
         if (e.ErrorCode == KeeperException.Code.NONODE)
         {
             CreateParentPath(zkClient, path);
             zkClient.CreateEphemeral(path, data);
         }
         else
         {
             throw;
         }
     }
 }
Exemplo n.º 4
0
 internal static void CreateEphemeralPath(IZooKeeperClient zkClient, string path, string data)
 {
     try
     {
         zkClient.CreateEphemeral(path, data);
     }
     catch (KeeperException e)
     {
         if (e.ErrorCode == KeeperException.Code.NONODE)
         {
             ZkUtils.CreateParentPath(zkClient, path);
             zkClient.CreateEphemeral(path, data);
         }
         else
             throw;
     }
 }