原载于zookeeper的java 代码
public class TestCRUD{ private static final String zkServers ="192.168.72.151:2181" private static ZkClient zkClient= null; static{ zkClient = new zkClient(zkServers,10000,10000// 超时时间毫秒 ); } public static void main(String[] args){ System.out.println(zkClient); } }