Class PathUtils
java.lang.Object
org.apache.zookeeper.common.PathUtils
Path related utilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTopNamespace(String path) return the top namespace of a znode pathstatic StringConvert Windows path to Unixstatic voidvalidatePath(String path) Validate the provided znode path stringstatic voidvalidatePath(String path, boolean isSequential) validate the provided znode path string
-
Constructor Details
-
PathUtils
public PathUtils()
-
-
Method Details
-
validatePath
validate the provided znode path string- Parameters:
path- znode path stringisSequential- if the path is being created with a sequential flag- Throws:
IllegalArgumentException- if the path is invalid
-
validatePath
Validate the provided znode path string- Parameters:
path- znode path string- Throws:
IllegalArgumentException- if the path is invalid
-
normalizeFileSystemPath
-
getTopNamespace
-