use of io.pravega.segmentstore.storage.impl.bookkeeper.BookKeeperLogFactory in project pravega by pravega.
the class BookKeeperAdapter method startUp.
@Override
protected void startUp() throws Exception {
// Start BookKeeper.
this.bookKeeperService = BookKeeperAdapter.startBookKeeperOutOfProcess(this.testConfig, this.logId);
// Create a ZK client.
this.zkClient = CuratorFrameworkFactory.builder().connectString("localhost:" + this.testConfig.getZkPort()).namespace("pravega").retryPolicy(new ExponentialBackoffRetry(1000, 5)).sessionTimeoutMs(5000).connectionTimeoutMs(5000).build();
this.zkClient.start();
// Create a BK client.
this.logFactory = new BookKeeperLogFactory(this.bkConfig, this.zkClient, this.executor);
this.logFactory.initialize();
}
Aggregations