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

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


channelDisconnected

@Override
public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e)


channelOpen

@Override
public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e)


exceptionCaught

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


getChannel

public Channel getChannel()


messageReceived

@Override
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e)


 

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