本文整理了Java中org.apache.zookeeper.server.ZKDatabase.isSpecialPath()
方法的一些代码示例,展示了ZKDatabase.isSpecialPath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKDatabase.isSpecialPath()
方法的具体详情如下:
包路径:org.apache.zookeeper.server.ZKDatabase
类名称:ZKDatabase
方法名:isSpecialPath
[英]check if the path is special or not
[中]检查路径是否特殊
代码示例来源:origin: apache/zookeeper
private String getParentPathAndValidate(String path)
throws BadArgumentsException {
int lastSlash = path.lastIndexOf('/');
if (lastSlash == -1 || path.indexOf('\0') != -1
|| zks.getZKDatabase().isSpecialPath(path)) {
throw new BadArgumentsException(path);
}
return path.substring(0, lastSlash);
}
代码示例来源:origin: org.apache.zookeeper/zookeeper
lastSlash = path.lastIndexOf('/');
if (lastSlash == -1 || path.indexOf('\0') != -1
|| zks.getZKDatabase().isSpecialPath(path)) {
throw new KeeperException.BadArgumentsException(path);
代码示例来源:origin: org.apache.hadoop/zookeeper
lastSlash = path.lastIndexOf('/');
if (lastSlash == -1 || path.indexOf('\0') != -1
|| zks.getZKDatabase().isSpecialPath(path)) {
throw new KeeperException.BadArgumentsException(path);
内容来源于网络,如有侵权,请联系作者删除!