Пример #1
0
 /// <summary>
 /// Update all ACLs for a zk tree based on our configured ZkACLProvider
 /// </summary>
 /// <param name="root">The root node to recursively update</param>
 public async Task updateACLs(string root)
 {
     await ZkMaintenanceUtils.traverseZkTree(this, root, VISIT_ORDER.VISIT_POST, async path =>
     {
         try
         {
             await setACL(path, (await keeper.getACLAsync(path)).Acls, true);
         }
         catch (KeeperException.NoNodeException)
         {
             // If a node was deleted, don't bother trying to set ACLs on it.
         }
     });
 }
Пример #2
0
 public async Task downloadFromZK(string zkPath, string dir, CancellationToken token)
 {
     await ZkMaintenanceUtils.downloadFromZK(this, zkPath, dir, token);
 }
Пример #3
0
 public async Task uploadToZK(string rootPath, string zkPath, Regex filenameExclusions, CancellationToken token)
 {
     await ZkMaintenanceUtils.uploadToZK(this, rootPath, zkPath, filenameExclusions, token);
 }
Пример #4
0
 public async Task moveZnode(string src, string dst, CancellationToken token)
 {
     await ZkMaintenanceUtils.moveZnode(this, src, dst, token);
 }
Пример #5
0
 public async Task zkTransfer(string src, bool srcIsZk, string dst, bool dstIsZk, bool recurse, CancellationToken token)
 {
     await ZkMaintenanceUtils.zkTransfer(this, src, srcIsZk, dst, dstIsZk, recurse, token);
 }
Пример #6
0
 public async Task downConfig(string confName, string confPath, CancellationToken token)
 {
     await ZkMaintenanceUtils.downConfig(this, confName, confPath, token);
 }
Пример #7
0
 public async Task <string> listZnode(string path, bool recurse)
 {
     return(await ZkMaintenanceUtils.listZnode(this, path, recurse));
 }
Пример #8
0
 public async Task clean(string path, CancellationToken token, Predicate <string> nodeFilter)
 {
     await ZkMaintenanceUtils.clean(this, path, token, nodeFilter);
 }
Пример #9
0
 // Some pass-throughs to allow less code disruption to other classes that use SolrZkClient.
 public async Task clean(string path, CancellationToken token)
 {
     await ZkMaintenanceUtils.clean(this, path, token);
 }