public class MessageChannelHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
| 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,
StreamInput buffer,
long requestId,
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) |
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, StreamInput buffer, long requestId, Version version) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.