// 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.class,
new FlumeLogAdapter(config, hConfig)),
new InetSocketAddress(this.port),
// in order to control the number of netty worker threads, we
// must create and pass in the server channel factory explicitly
new NioServerSocketChannelFactory(