Package org.ros.internal.transport
Class ConnectionTrackingHandler
java.lang.Object
org.jboss.netty.channel.SimpleChannelHandler
org.ros.internal.transport.ConnectionTrackingHandler
- All Implemented Interfaces:
org.jboss.netty.channel.ChannelDownstreamHandler,org.jboss.netty.channel.ChannelHandler,org.jboss.netty.channel.ChannelUpstreamHandler
public class ConnectionTrackingHandler
extends org.jboss.netty.channel.SimpleChannelHandler
Adds new
Channels to the provided ChannelGroup.- Author:
- damonkohler@google.com (Damon Kohler)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionConnectionTrackingHandler(org.jboss.netty.channel.group.ChannelGroup channelGroup) -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) voidchannelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) voidexceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e) Methods inherited from class org.jboss.netty.channel.SimpleChannelHandler
bindRequested, channelBound, channelConnected, channelDisconnected, channelInterestChanged, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, messageReceived, setInterestOpsRequested, unbindRequested, writeComplete, writeRequested
-
Constructor Details
-
ConnectionTrackingHandler
public ConnectionTrackingHandler(org.jboss.netty.channel.group.ChannelGroup channelGroup)
-
-
Method Details
-
channelOpen
public void channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception - Overrides:
channelOpenin classorg.jboss.netty.channel.SimpleChannelHandler- Throws:
Exception
-
channelClosed
public void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception - Overrides:
channelClosedin classorg.jboss.netty.channel.SimpleChannelHandler- Throws:
Exception
-
exceptionCaught
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e) throws Exception - Overrides:
exceptionCaughtin classorg.jboss.netty.channel.SimpleChannelHandler- Throws:
Exception
-