|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.curator.utils.ZKPaths
public class ZKPaths
| Nested Class Summary | |
|---|---|
static class |
ZKPaths.PathAndNode
|
| Method Summary | |
|---|---|
static java.lang.String |
fixForNamespace(java.lang.String namespace,
java.lang.String path)
Apply the namespace to the given path |
static java.lang.String |
getNodeFromPath(java.lang.String path)
Given a full path, return the node name. |
static ZKPaths.PathAndNode |
getPathAndNode(java.lang.String path)
Given a full path, return the node name and its path. |
static java.util.List<java.lang.String> |
getSortedChildren(org.apache.zookeeper.ZooKeeper zookeeper,
java.lang.String path)
Return the children of the given path sorted by sequence number |
static java.lang.String |
makePath(java.lang.String parent,
java.lang.String child)
Given a parent path and a child node, create a combined full path |
static void |
mkdirs(org.apache.zookeeper.ZooKeeper zookeeper,
java.lang.String path)
Make sure all the nodes in the path are created. |
static void |
mkdirs(org.apache.zookeeper.ZooKeeper zookeeper,
java.lang.String path,
boolean makeLastNode)
Make sure all the nodes in the path are created. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String fixForNamespace(java.lang.String namespace,
java.lang.String path)
namespace - namespace (can be null)path - path
public static java.lang.String getNodeFromPath(java.lang.String path)
path - the path
public static ZKPaths.PathAndNode getPathAndNode(java.lang.String path)
path - the path
public static void mkdirs(org.apache.zookeeper.ZooKeeper zookeeper,
java.lang.String path)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
zookeeper - the clientpath - path to ensure
java.lang.InterruptedException - thread interruption
org.apache.zookeeper.KeeperException - Zookeeper errors
public static void mkdirs(org.apache.zookeeper.ZooKeeper zookeeper,
java.lang.String path,
boolean makeLastNode)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
zookeeper - the clientpath - path to ensuremakeLastNode - if true, all nodes are created. If false, only the parent nodes are created
java.lang.InterruptedException - thread interruption
org.apache.zookeeper.KeeperException - Zookeeper errors
public static java.util.List<java.lang.String> getSortedChildren(org.apache.zookeeper.ZooKeeper zookeeper,
java.lang.String path)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
zookeeper - the clientpath - the path
java.lang.InterruptedException - thread interruption
org.apache.zookeeper.KeeperException - zookeeper errors
public static java.lang.String makePath(java.lang.String parent,
java.lang.String child)
parent - the parentchild - the child
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||