gpt4 book ai didi

org.lilyproject.util.zookeeper.ZooKeeperItf.close()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 19:44:49 27 4
gpt4 key购买 nike

本文整理了Java中org.lilyproject.util.zookeeper.ZooKeeperItf.close()方法的一些代码示例,展示了ZooKeeperItf.close()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperItf.close()方法的具体详情如下:
包路径:org.lilyproject.util.zookeeper.ZooKeeperItf
类名称:ZooKeeperItf
方法名:close

ZooKeeperItf.close介绍

暂无

代码示例

代码示例来源:origin: NGDATA/lilyproject

@Override
public void close() {
  wrapped.close();
}

代码示例来源:origin: NGDATA/lilyproject

@Override
public void close() throws IOException {
  this.isClosed = true;
  zk.removeDefaultWatcher(watcher);
  schemaCache.close();
  synchronized (this) {
    for (ServerNode node : servers) {
      node.close();
    }
    servers.clear();
  }
  if (managedZk && zk != null) {
    zk.close();
  }
  // Close pools related to the Configuration objects managed by this LilyClient instance
  for (Configuration config : hbaseConnections.getConfigurations()) {
    LocalHTable.closePool(config);
  }
  // Close HBase connections created by [only] this LilyClient instance.
  // This will almost always contain only one connection, if not we would need a more
  // advanced connection mgmt so that these connections don't stay open for the lifetime
  // of LilyClient.
  Closer.close(hbaseConnections);
}

代码示例来源:origin: NGDATA/lilyproject

private Server createServer() throws Exception {
  if (this.useSolrCloud) {
    // create path on zookeeper for solr cloud
    ZooKeeperItf zk = ZkUtil.connect("localhost:2181", 10000);
    ZkUtil.createPath(zk, "/solr");
    zk.close();
  }
  Server server = new Server(solrPort);
  WebAppContext ctx = new WebAppContext(solrWarPath, "/solr");
  // The reason to change the classloading behavior was primarily so that the logging libraries would
  // be inherited, and hence that Solr would use the same logging system & conf.
  ctx.setParentLoaderPriority(true);
  server.addHandler(ctx);
  return server;
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com