use of com.ctrip.xpipe.zk.ZkConfig in project x-pipe by ctripcorp.
the class AbstractZkUsageTest method beforeAbstractZkUsageTest.
@Before
public void beforeAbstractZkUsageTest() throws InterruptedException {
ZkConfig zkConfig = new DefaultZkConfig();
client = zkConfig.create(zkAddress);
}
use of com.ctrip.xpipe.zk.ZkConfig in project x-pipe by ctripcorp.
the class DefaultLeaderElectorTest method beforeDefaultLeaderElectorTest.
@Before
public void beforeDefaultLeaderElectorTest() throws InterruptedException {
zkTestServer = startRandomZk();
ZkConfig config = new DefaultZkConfig();
client = config.create(String.format("localhost:%d", zkTestServer.getZkPort()));
}
Aggregations