当前位置:K88软件开发文章中心大数据Zookeeper → 文章内容

Zookeeper API

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-26 10:08:51

ublic static void main(String[] args) throws InterruptedException,KeeperException { String path = "/MyFirstZnode"; //Assign path to the znode try { conn = new ZooKeeperConnection(); zk = conn.connect("localhost"); delete(path); //delete the node with the specified path } catch(Exception e) { System.out.println(e.getMessage()); // catches error messages } }}

上一页  [1] [2] [3] [4] 


Zookeeper API