// for the zkServers input parameter when constructing the BookieServer.
ServerConfiguration conf = new ServerConfiguration();
conf.setZkServers(null).setBookiePort(port)
.setJournalDirName(tmpDir.getPath())
.setLedgerDirNames(new String[] { tmpDir.getPath() });
bs = new BookieServer(conf);
bs.start();
channelFactory = new NioClientSocketChannelFactory(Executors.newCachedThreadPool(), Executors
.newCachedThreadPool());
executor = new OrderedSafeExecutor(2);
}