use of org.apache.zookeeper.server.ZooKeeperServer in project parseq by linkedin.
the class ZKServer method restart.
public void restart() throws IOException, InterruptedException {
shutdown(false);
_zk = new ZooKeeperServer(_dataDir, _logDir, 5000);
_factory = new NIOServerCnxnFactory();
_factory.configure(new InetSocketAddress(_port), 60);
startup();
}
Aggregations