public ZooKeeperServer createServer() throws IOException {
// create a file logger url from the command line args
ZooKeeperServer zks = new ZooKeeperServer();
zks.setClientPort(ServerConfig.getClientPort());
FileTxnSnapLog ftxn = new FileTxnSnapLog(new
File(ServerConfig.getDataLogDir()),
new File(ServerConfig.getDataDir()));
zks.setTxnLogFactory(ftxn);
return zks;
}