Class ZKACLProviderDelegate

java.lang.Object
org.apache.drill.exec.coord.zk.ZKACLProviderDelegate
All Implemented Interfaces:
org.apache.curator.framework.api.ACLProvider, org.apache.curator.utils.InternalACLProvider

public class ZKACLProviderDelegate extends Object implements org.apache.curator.framework.api.ACLProvider
This class hides the ZKACLProvider from Curator-specific functions This is done so that ACL Providers have to be aware only about ZK ACLs and the Drill ZKACLProvider interface ACL Providers should not be concerned with the framework (Curator) used by Drill to access ZK. If Drill stops using Curator, then existing ZKACLProvider implementations will still work.
  • Constructor Details

    • ZKACLProviderDelegate

      public ZKACLProviderDelegate(ZKACLProvider aclProvider)
  • Method Details

    • getDefaultAcl

      public final List<org.apache.zookeeper.data.ACL> getDefaultAcl()
      Specified by:
      getDefaultAcl in interface org.apache.curator.framework.api.ACLProvider
      Specified by:
      getDefaultAcl in interface org.apache.curator.utils.InternalACLProvider
    • getAclForPath

      public final List<org.apache.zookeeper.data.ACL> getAclForPath(String path)
      Specified by:
      getAclForPath in interface org.apache.curator.framework.api.ACLProvider
      Specified by:
      getAclForPath in interface org.apache.curator.utils.InternalACLProvider