本文整理了Java中org.apache.storm.utils.Utils.getSuperUserAcl()
方法的一些代码示例,展示了Utils.getSuperUserAcl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.getSuperUserAcl()
方法的具体详情如下:
包路径:org.apache.storm.utils.Utils
类名称:Utils
方法名:getSuperUserAcl
[英]Get the ACL for nimbus/supervisor. The Super User ACL. This assumes that security is enabled.
[中]获取nimbus/主管的ACL。超级用户ACL。这假定已启用安全性。
代码示例来源:origin: apache/storm
/**
* Get the ZK ACLs that a worker should use when writing to ZK.
*
* @param conf the config for the topology.
* @return the ACLs
*/
public static List<ACL> getWorkerACL(Map<String, Object> conf) {
if (!isZkAuthenticationConfiguredTopology(conf)) {
return null;
}
ArrayList<ACL> ret = new ArrayList<>(ZooDefs.Ids.CREATOR_ALL_ACL);
ret.add(getSuperUserAcl(conf));
return ret;
}
代码示例来源:origin: apache/storm
ACL superUserAcl = Utils.getSuperUserAcl(conf);
List<ACL> superAcl = new ArrayList<>(1);
superAcl.add(superUserAcl);
代码示例来源:origin: org.apache.storm/storm-core
/**
* Get the ZK ACLs that a worker should use when writing to ZK.
* @param conf the config for the topology.
* @return the ACLs
*/
public static List<ACL> getWorkerACL(Map<String, Object> conf) {
if (!isZkAuthenticationConfiguredTopology(conf)) {
return null;
}
ArrayList<ACL> ret = new ArrayList<ACL>(ZooDefs.Ids.CREATOR_ALL_ACL);
ret.add(getSuperUserAcl(conf));
return ret;
}
代码示例来源:origin: org.apache.storm/storm-core
ACL superUserAcl = Utils.getSuperUserAcl(conf);
List<ACL> superAcl = new ArrayList<>(1);
superAcl.add(superUserAcl);
内容来源于网络,如有侵权,请联系作者删除!