private void put(ZkSerial node, String path) throws Exception { // 加锁Service all version (粗粒度) synchronized (node.service()) { // 同步GetOrCreate this.context.get(node.service(), node.version()).put(node.host()); } this.imported.put(path, node.host()); this.connect.connect(node.host()); }