Zookeeper
intelrain
这个作者很懒,什么都没留下…
展开
-
ZooKeeper 获取所有非空节点
public static String getnodes(String nodepath) throws IOException, KeeperException, Exception { // String nodePath="/configurations"; ZooKeeper zk = new ZooKeeper("172.0.0.0:" + 2181, 3000, ...原创 2018-03-30 10:28:53 · 1205 阅读 · 0 评论 -
Zookeeper相关
Zookeeper @RequestMapping("/zookeeper") @ResponseBody void zookeeperTest() { String connectString = "172.16.31.67:2181"; int sessionTimeout = 4000; Watcher watc...原创 2018-03-27 17:38:18 · 140 阅读 · 0 评论