org.codehaus.gpars

groovyx.gpars.remote.netty
[Java] Class NettyHandler

java.lang.Object
  org.jboss.netty.channel.SimpleChannelHandler
      groovyx.gpars.remote.netty.NettyHandler

public class NettyHandler
extends SimpleChannelHandler

Authors:
Alex Tkachman


Field Summary
private Channel channel

private RemoteConnection connection

 
Constructor Summary
NettyHandler(NettyTransportProvider provider)

 
Method Summary
void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)

void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e)

void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e)

void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)

Channel getChannel()

void messageReceived(ChannelHandlerContext ctx, MessageEvent e)

 

Field Detail

channel

private Channel channel


connection

private final RemoteConnection connection


 
Constructor Detail

NettyHandler

public NettyHandler(NettyTransportProvider provider)


 
Method Detail

channelConnected

@java.lang.Override
public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)


channelDisconnected

@java.lang.Overridee.getCause().printStackTrace();
public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e)


channelOpen

@java.lang.Override}
public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e)


exceptionCaught

@java.lang.Override
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)


getChannel

public Channel getChannel()


messageReceived

@java.lang.Override}
}
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e)


 

Copyright © 2008–2013 Václav Pech. All Rights Reserved.