runner.startAll(); Thread.sleep(Long.MAX_VALUE);
/** * Start BookKeeper once for the duration of this class. This is pretty strenuous, so in the interest of running time * we only do it once. */ public static void setUpBookKeeper(boolean secure) throws Exception { // Pick a random port to reduce chances of collisions during concurrent test executions. SECURE_BK.set(secure); BK_PORT.set(TestUtils.getAvailableListenPort()); val bookiePorts = new ArrayList<Integer>(); for (int i = 0; i < BOOKIE_COUNT; i++) { bookiePorts.add(TestUtils.getAvailableListenPort()); } val runner = BookKeeperServiceRunner.builder() .startZk(true) .zkPort(BK_PORT.get()) .ledgersPath("/pravega/bookkeeper/ledgers") .secureBK(isSecure()) .secureZK(isSecure()) .tlsTrustStore("../../../config/bookie.truststore.jks") .tLSKeyStore("../../../config/bookie.keystore.jks") .tLSKeyStorePasswordPath("../../../config/bookie.keystore.jks.passwd") .bookiePorts(bookiePorts) .build(); runner.startAll(); BK_SERVICE.set(runner); }
.bookiePorts(bookiePorts) .build(); this.bkRunner.startAll();