use of io.pravega.segmentstore.server.host.handler.PravegaRequestProcessor in project pravega by pravega.
the class AppendTest method createChannel.
static EmbeddedChannel createChannel(StreamSegmentStore store) {
ServerConnectionInboundHandler lsh = new ServerConnectionInboundHandler();
EmbeddedChannel channel = new EmbeddedChannel(new ExceptionLoggingHandler(""), new CommandEncoder(null), new LengthFieldBasedFrameDecoder(MAX_WIRECOMMAND_SIZE, 4, 4), new CommandDecoder(), new AppendDecoder(), lsh);
lsh.setRequestProcessor(new AppendProcessor(store, lsh, new PravegaRequestProcessor(store, lsh), null));
return channel;
}
Aggregations