本文整理了Java中org.apache.hadoop.registry.client.impl.zk.ZKPathDumper.expand()
方法的一些代码示例,展示了ZKPathDumper.expand()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKPathDumper.expand()
方法的具体详情如下:
包路径:org.apache.hadoop.registry.client.impl.zk.ZKPathDumper
类名称:ZKPathDumper
方法名:expand
[英]Recursively expand the path into the supplied string builder, increasing the indentation by #INDENT as it proceeds (depth first) down the tree
[中]
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-registry
/**
* Trigger the recursive registry dump.
* @return a string view of the registry
*/
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("ZK tree for ").append(root).append('\n');
expand(builder, root, 1);
return builder.toString();
}
代码示例来源:origin: io.hops/hadoop-yarn-registry
/**
* Trigger the recursive registry dump.
* @return a string view of the registry
*/
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("ZK tree for ").append(root).append('\n');
expand(builder, root, 1);
return builder.toString();
}
代码示例来源:origin: io.hops/hadoop-yarn-registry
builder.append('\n');
expand(builder, childPath, indent + INDENT);
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-registry
builder.append('\n');
expand(builder, childPath, indent + INDENT);
内容来源于网络,如有侵权,请联系作者删除!