public class MessageChannelHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MessageChannelHandler.Marker
Internal helper class to store characteristic offsets of a buffer during processing
|
| Modifier and Type | Field and Description |
|---|---|
protected ESLogger |
logger |
protected String |
profileName |
protected ThreadPool |
threadPool |
protected NettyTransport |
transport |
protected TransportServiceAdapter |
transportServiceAdapter |
| Constructor and Description |
|---|
MessageChannelHandler(NettyTransport transport,
ESLogger logger,
String profileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
protected String |
handleRequest(org.jboss.netty.channel.Channel channel,
MessageChannelHandler.Marker marker,
StreamInput buffer,
long requestId,
int messageLengthBytes,
Version version) |
protected void |
handleResponse(org.jboss.netty.channel.Channel channel,
StreamInput buffer,
TransportResponseHandler handler) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
protected void |
validateRequest(MessageChannelHandler.Marker marker,
StreamInput buffer,
long requestId,
TransportRequest request,
String action) |
void |
writeComplete(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.WriteCompletionEvent e) |
protected final ESLogger logger
protected final ThreadPool threadPool
protected final TransportServiceAdapter transportServiceAdapter
protected final NettyTransport transport
protected final String profileName
public MessageChannelHandler(NettyTransport transport, ESLogger logger, String profileName)
public void writeComplete(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.WriteCompletionEvent e)
throws Exception
writeComplete in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
throws Exception
messageReceived in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionprotected void handleResponse(org.jboss.netty.channel.Channel channel,
StreamInput buffer,
TransportResponseHandler handler)
protected String handleRequest(org.jboss.netty.channel.Channel channel, MessageChannelHandler.Marker marker, StreamInput buffer, long requestId, int messageLengthBytes, Version version) throws IOException
IOExceptionprotected void validateRequest(MessageChannelHandler.Marker marker, StreamInput buffer, long requestId, TransportRequest request, String action) throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.