org.apache.zookeeper.data.ACL.toString()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(69)

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

ACL.toString介绍

暂无

代码示例

代码示例来源:origin: apache/zookeeper

public void createNodePrintAcl(ZooKeeper zk, String path, String testName) {
  try {
    LOG.debug("KeyAuthenticationProvider Creating Test Node:" + path + ".\n");
    zk.create(path, null, Ids.CREATOR_ALL_ACL, CreateMode.PERSISTENT);
    List<ACL> acls = zk.getACL(path, null);
    LOG.debug("Node: " + path + " Test:" + testName + " ACLs:");
    for (ACL acl : acls) {
      LOG.debug("  " + acl.toString());
    }
  } catch (Exception e) {
    LOG.debug("  EXCEPTION THROWN", e);
  }
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

private void logRootNodeAcls(String prefix) throws Exception {
 Stat getStat = new Stat();
 List<ACL> getAcls = getACLWithRetries(zkRootNodePath, getStat);
 StringBuilder builder = new StringBuilder();
 builder.append(prefix);
 for (ACL acl : getAcls) {
  builder.append(acl.toString());
 }
 builder.append(getStat.toString());
 LOG.debug(builder.toString());
}

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

private void logRootNodeAcls(String prefix) throws Exception {
 Stat getStat = new Stat();
 List<ACL> getAcls = getACL(zkRootNodePath);
 StringBuilder builder = new StringBuilder();
 builder.append(prefix);
 for (ACL acl : getAcls) {
  builder.append(acl.toString());
 }
 builder.append(getStat.toString());
 LOG.debug(builder.toString());
}

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

private void logRootNodeAcls(String prefix) throws Exception {
 Stat getStat = new Stat();
 List<ACL> getAcls = getACLWithRetries(zkRootNodePath, getStat);
 StringBuilder builder = new StringBuilder();
 builder.append(prefix);
 for (ACL acl : getAcls) {
  builder.append(acl.toString());
 }
 builder.append(getStat.toString());
 LOG.debug(builder.toString());
}

相关文章