/**
* Start a NettyServer, wait a moment for it to spin up, and return it.
*/
public static Server startServer(AvroSourceProtocol handler, int port, boolean enableCompression) {
Responder responder = new SpecificResponder(AvroSourceProtocol.class,
handler);
Server server;
if (enableCompression) {
server = new NettyServer(responder,
new InetSocketAddress(localhost, port),