Package org.apache.drill.exec.coord.zk
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal List<org.apache.zookeeper.data.ACL>
getAclForPath
(String path) final List<org.apache.zookeeper.data.ACL>
-
Constructor Details
-
ZKACLProviderDelegate
-
-
Method Details
-
getDefaultAcl
- Specified by:
getDefaultAcl
in interfaceorg.apache.curator.framework.api.ACLProvider
- Specified by:
getDefaultAcl
in interfaceorg.apache.curator.utils.InternalACLProvider
-
getAclForPath
- Specified by:
getAclForPath
in interfaceorg.apache.curator.framework.api.ACLProvider
- Specified by:
getAclForPath
in interfaceorg.apache.curator.utils.InternalACLProvider
-