org.tinygroup.remoteconfig.zk.utils
类 PathHelper
java.lang.Object
org.tinygroup.remoteconfig.zk.utils.PathHelper
public class PathHelper
- extends Object
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathHelper
public PathHelper()
generateParentPath
public static String generateParentPath(String znodePath)
- 获取父亲节点
- 参数:
znodePath - 必须多于两级
- 返回:
- parent znodePath
createPath
public static String createPath(ConfigPath configPath)
- 获取全路径
- 参数:
config -
- 返回:
getConfigPath
public static String getConfigPath(String... nodes)
- 获取系统根路径
- 参数:
config -
- 返回:
createPath
public static String createPath(String node,
ConfigPath configPath)
appendSplit
public static String appendSplit(String node)
Copyright © 2006–2016 TinyGroup. All rights reserved.