public class PathHelper extends Object
Constructor and Description |
---|
PathHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
appendSplit(String node) |
static String |
createPath(ConfigPath configPath)
获取全路径
|
static String |
createPath(String node,
ConfigPath configPath) |
static String |
createPublishPath(String clientName,
ConfigPath configPath) |
static String |
generateParentPath(String znodePath)
获取父亲节点
|
static String |
getConfigPath(String... nodes)
获取系统根路径
|
public static String generateParentPath(String znodePath)
znodePath
- 必须多于两级public static String createPath(ConfigPath configPath)
config
- public static String getConfigPath(String... nodes)
config
- public static String createPath(String node, ConfigPath configPath)
public static String createPublishPath(String clientName, ConfigPath configPath)
Copyright © 2006–2018 TinyGroup. All rights reserved.