org.apache.storm.utils.Utils.getSuperUserAcl()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中org.apache.storm.utils.Utils.getSuperUserAcl()方法的一些代码示例,展示了Utils.getSuperUserAcl()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.getSuperUserAcl()方法的具体详情如下:
包路径:org.apache.storm.utils.Utils
类名称:Utils
方法名:getSuperUserAcl

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);

相关文章

微信公众号

最新文章

更多

Utils类方法