public void startServer(int index) throws IOException {
int port = fakeBasePort+10+index;
if (fakeMachines) {
qps[index] = new QuorumPeer(peers, qpsDirs[index], qpsDirs[index], port, 0, index+1, tickTime, initLimit, syncLimit);
qps[index].start();
} else {
try {
QuorumPeerInstance.startInstance(im, quorumHostPort, index);
} catch(Exception e) {
IOException ioe = new IOException(e.getClass().getName() + ": " + e.getMessage());
ioe.setStackTrace(e.getStackTrace());
throw ioe;
}
}
}
BaseSysTest.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:fuck_zookeeper
作者:
评论列表
文章目录