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

    Constructors
    Constructor
    Description
    ConnectionTrackingHandler(org.jboss.netty.channel.group.ChannelGroup channelGroup)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e)
     
    void
    channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e)
     
    void
    exceptionCaught(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      channelOpen in class org.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:
      channelClosed in class org.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:
      exceptionCaught in class org.jboss.netty.channel.SimpleChannelHandler
      Throws:
      Exception