|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.curator.utils.ZKPaths
public class ZKPaths
| Nested Class Summary | |
|---|---|
static class |
ZKPaths.PathAndNode
|
| Method Summary | |
|---|---|
static void |
deleteChildren(org.apache.zookeeper.ZooKeeper zookeeper,
String path,
boolean deleteSelf)
Recursively deletes children of a node. |
static String |
fixForNamespace(String namespace,
String path)
Apply the namespace to the given path |
static String |
getNodeFromPath(String path)
Given a full path, return the node name. |
static ZKPaths.PathAndNode |
getPathAndNode(String path)
Given a full path, return the node name and its path. |
static List<String> |
getSortedChildren(org.apache.zookeeper.ZooKeeper zookeeper,
String path)
Return the children of the given path sorted by sequence number |
static String |
makePath(String parent,
String child)
Given a parent path and a child node, create a combined full path |
static void |
mkdirs(org.apache.zookeeper.ZooKeeper zookeeper,
String path)
Make sure all the nodes in the path are created. |
static void |
mkdirs(org.apache.zookeeper.ZooKeeper zookeeper,
String path,
boolean makeLastNode)
Make sure all the nodes in the path are created. |
static void |
mkdirs(org.apache.zookeeper.ZooKeeper zookeeper,
String path,
boolean makeLastNode,
InternalACLProvider aclProvider)
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 String fixForNamespace(String namespace,
String path)
namespace - namespace (can be null)path - path
public static String getNodeFromPath(String path)
path - the path
public static ZKPaths.PathAndNode getPathAndNode(String path)
path - the path
public static void mkdirs(org.apache.zookeeper.ZooKeeper zookeeper,
String path)
throws InterruptedException,
org.apache.zookeeper.KeeperException
zookeeper - the clientpath - path to ensure
InterruptedException - thread interruption
org.apache.zookeeper.KeeperException - Zookeeper errors
public static void mkdirs(org.apache.zookeeper.ZooKeeper zookeeper,
String path,
boolean makeLastNode)
throws 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
InterruptedException - thread interruption
org.apache.zookeeper.KeeperException - Zookeeper errors
public static void mkdirs(org.apache.zookeeper.ZooKeeper zookeeper,
String path,
boolean makeLastNode,
InternalACLProvider aclProvider)
throws InterruptedException,
org.apache.zookeeper.KeeperException
zookeeper - the clientpath - path to ensuremakeLastNode - if true, all nodes are created. If false, only the parent nodes are createdaclProvider - if not null, the ACL provider to use when creating parent nodes
InterruptedException - thread interruption
org.apache.zookeeper.KeeperException - Zookeeper errors
public static void deleteChildren(org.apache.zookeeper.ZooKeeper zookeeper,
String path,
boolean deleteSelf)
throws InterruptedException,
org.apache.zookeeper.KeeperException
zookeeper - the clientpath - path of the node to deletedeleteSelf - flag that indicates that the node should also get deleted
InterruptedException
org.apache.zookeeper.KeeperException
public static List<String> getSortedChildren(org.apache.zookeeper.ZooKeeper zookeeper,
String path)
throws InterruptedException,
org.apache.zookeeper.KeeperException
zookeeper - the clientpath - the path
InterruptedException - thread interruption
org.apache.zookeeper.KeeperException - zookeeper errors
public static String makePath(String parent,
String child)
parent - the parentchild - the child
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||