use of io.pravega.controller.store.ZKStoreHelper in project pravega by pravega.
the class ZkOrderedStoreTest method setup.
@Before
public void setup() throws Exception {
zkServer = new TestingServerStarter().start();
cli = CuratorFrameworkFactory.newClient(zkServer.getConnectString(), 10000, 10000, new RetryNTimes(0, 0));
cli.start();
zkStoreHelper = new ZKStoreHelper(cli, executor);
}
use of io.pravega.controller.store.ZKStoreHelper in project pravega by pravega.
the class ZooKeeperStreamTest method setup.
@Override
public void setup() throws Exception {
zkServer = new TestingServerStarter().start();
zkServer.start();
int sessionTimeout = 8000;
int connectionTimeout = 5000;
cli = CuratorFrameworkFactory.newClient(zkServer.getConnectString(), sessionTimeout, connectionTimeout, new RetryOneTime(2000));
cli.start();
storeHelper = new ZKStoreHelper(cli, executor);
store = new ZKStreamMetadataStore(cli, executor, Duration.ofSeconds(1));
}
Aggregations