public class ZooKeeperUtils extends Object
Constructor and Description |
---|
ZooKeeperUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
createDirectory(org.apache.zookeeper.ZooKeeper zk,
String path,
byte[] data,
org.apache.zookeeper.CreateMode createMode) |
static List<String> |
getChildDirectories(org.apache.zookeeper.ZooKeeper zk,
String parentPath) |
static byte[] |
readZNodeData(org.apache.zookeeper.ZooKeeper zk,
String path) |
public static String createDirectory(org.apache.zookeeper.ZooKeeper zk, String path, byte[] data, org.apache.zookeeper.CreateMode createMode) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public static List<String> getChildDirectories(org.apache.zookeeper.ZooKeeper zk, String parentPath) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public static byte[] readZNodeData(org.apache.zookeeper.ZooKeeper zk, String path) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
Copyright © 2015. All rights reserved.