org.tinygroup.remoteconfig.zk.utils
类 PathHelper

java.lang.Object
  继承者 org.tinygroup.remoteconfig.zk.utils.PathHelper

public class PathHelper
extends Object


构造方法摘要
PathHelper()
           
 
方法摘要
static String appendSplit(String node)
           
static String createPath(ConfigPath configPath)
          获取全路径
static String createPath(String node, ConfigPath configPath)
           
static String generateParentPath(String znodePath)
          获取父亲节点
static String getConfigPath(String... nodes)
          获取系统根路径
 
从类 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.