flumeAdapter.startAndWait();
// this is all standard avro ipc. The key is to pass in Flume's avro
// source protocol as the interface, and the FlumeAdapter as its
// implementation.
this.server = new NettyServer(
new SpecificResponder(AvroSourceProtocol.Callback.class, flumeAdapter),
new InetSocketAddress(port),
// in order to control the number of netty worker threads, we
// must create and pass in the server channel factory explicitly
new NioServerSocketChannelFactory(