use of com.netflix.curator.x.zkclientbridge.CuratorZKClientBridge in project curator by Netflix.
the class ZkTestSystem method createZkConnection.
public static IZkConnection createZkConnection(String connectString) {
Timing timing = new Timing();
CuratorFramework client = CuratorFrameworkFactory.newClient(connectString, timing.session(), timing.connection(), new RetryOneTime(1));
client.start();
try {
return new CuratorZKClientBridge(client);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
Aggregations