@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { Netty4Utils.maybeDie(cause); transport.exceptionCaught(ctx, cause); }
@Override public String toString() { return "Netty4TcpChannel{" + "localAddress=" + getLocalAddress() + '}'; } }
@Override protected void initChannel(Channel ch) throws Exception { ch.pipeline().addLast("logging", new ESLoggingHandler()); ch.pipeline().addLast("size", new Netty4SizeHeaderFrameDecoder()); // using a dot as a prefix means this cannot come from any settings parsed ch.pipeline().addLast("dispatcher", new Netty4MessageChannelHandler(Netty4Transport.this, ".client")); }
@Override protected void initChannel(Channel ch) throws Exception { addClosedExceptionLogger(ch); NettyTcpChannel nettyTcpChannel = new NettyTcpChannel(ch); ch.attr(CHANNEL_KEY).set(nettyTcpChannel); serverAcceptedChannel(nettyTcpChannel); ch.pipeline().addLast("logging", new ESLoggingHandler()); ch.pipeline().addLast("size", new Netty4SizeHeaderFrameDecoder()); ch.pipeline().addLast("dispatcher", new Netty4MessageChannelHandler(Netty4Transport.this, name)); }
@Override protected void initChannel(Channel ch) throws Exception { addClosedExceptionLogger(ch); Netty4TcpChannel nettyTcpChannel = new Netty4TcpChannel(ch, true, name, ch.newSucceededFuture()); ch.attr(CHANNEL_KEY).set(nettyTcpChannel); serverAcceptedChannel(nettyTcpChannel); ch.pipeline().addLast("logging", new ESLoggingHandler()); ch.pipeline().addLast("size", new Netty4SizeHeaderFrameDecoder()); ch.pipeline().addLast("dispatcher", new Netty4MessageChannelHandler(Netty4Transport.this)); }
/** * Wraps the given ChannelBuffer with a BytesReference of a given size */ static BytesReference toBytesReference(final ByteBuf buffer, final int size) { return new ByteBufBytesReference(buffer, size); }
@Override public InternalLogger newInstance(final String name) { return new Netty4InternalESLogger(name); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { Netty4Utils.maybeDie(cause); transport.exceptionCaught(ctx, cause); }
@Override protected void initChannel(Channel ch) throws Exception { ch.pipeline().addLast("logging", new ESLoggingHandler()); ch.pipeline().addLast("size", new Netty4SizeHeaderFrameDecoder()); // using a dot as a prefix means this cannot come from any settings parsed ch.pipeline().addLast("dispatcher", new Netty4MessageChannelHandler(Netty4Transport.this)); }
/** * Wraps the given ChannelBuffer with a BytesReference of a given size */ static BytesReference toBytesReference(final ByteBuf buffer, final int size) { return new ByteBufBytesReference(buffer, size); }
@Override public InternalLogger newInstance(final String name) { return new Netty4InternalESLogger(name); }
@Override protected void initChannel(Channel ch) throws Exception { ch.pipeline().addLast("logging", new ESLoggingHandler()); ch.pipeline().addLast("size", new Netty4SizeHeaderFrameDecoder()); // using a dot as a prefix means this cannot come from any settings parsed ch.pipeline().addLast("dispatcher", new Netty4MessageChannelHandler(Netty4Transport.this, ".client")); }
/** * Wraps the given ChannelBuffer with a BytesReference of a given size */ static BytesReference toBytesReference(final ByteBuf buffer, final int size) { return new ByteBufBytesReference(buffer, size); }
@Override public InternalLogger newInstance(final String name) { return new Netty4InternalESLogger(name); }
@Override protected void initChannel(Channel ch) throws Exception { ch.pipeline().addLast("logging", new ESLoggingHandler()); ch.pipeline().addLast("size", new Netty4SizeHeaderFrameDecoder()); // using a dot as a prefix means this cannot come from any settings parsed ch.pipeline().addLast("dispatcher", new Netty4MessageChannelHandler(Netty4Transport.this, ".client")); }
/** * Wraps the given ChannelBuffer with a BytesReference of a given size */ static BytesReference toBytesReference(final ByteBuf buffer, final int size) { return new ByteBufBytesReference(buffer, size); }