org.apache.drill.yarn.zk.ZKClusterCoordinatorDriver.close()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(80)

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

ZKClusterCoordinatorDriver.close介绍

暂无

代码示例

代码示例来源:origin: apache/drill

public void finish(RegistryHandler handler) {
 zkDriver.removeDrillbitListener(this);
 zkDriver.close();
}

代码示例来源:origin: apache/drill

/**
 * Basic setup: start a ZK and verify that the initial endpoint list is empty.
 * Also validates the basics of the test setup (mock server, etc.)
 *
 * @throws Exception
 */
@Test
public void testBasics() throws Exception {
 try (TestingServer server = new TestingServer()) {
  server.start();
  String connStr = server.getConnectString();
  ZKClusterCoordinatorDriver driver = new ZKClusterCoordinatorDriver()
    .setConnect(connStr, "drill", "drillbits").build();
  assertTrue(driver.getInitialEndpoints().isEmpty());
  driver.close();
  server.stop();
 }
}

代码示例来源:origin: apache/drill

driver2.close();
 driver2.close();
 driver2.close();
driver.close();
 driver2.close();

代码示例来源:origin: apache/drill

driver.close();
server.stop();
server.close();

代码示例来源:origin: apache/drill

driver.close();
server.stop();
server.close();

相关文章