Class NettyHandler

java.lang.Object
org.jboss.netty.channel.SimpleChannelHandler
org.apache.dubbo.remoting.transport.netty.NettyHandler
All Implemented Interfaces:
org.jboss.netty.channel.ChannelDownstreamHandler, org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

@Sharable public class NettyHandler extends org.jboss.netty.channel.SimpleChannelHandler
NettyHandler
  • 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
    NettyHandler(org.apache.dubbo.common.URL url, ChannelHandler handler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e)
     
    void
    channelDisconnected(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)
     
     
    void
    messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e)
     
    void
    writeRequested(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e)
     

    Methods inherited from class org.jboss.netty.channel.SimpleChannelHandler

    bindRequested, channelBound, channelClosed, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NettyHandler

      public NettyHandler(org.apache.dubbo.common.URL url, ChannelHandler handler)
  • Method Details

    • getChannels

      public Map<String,Channel> getChannels()
    • channelConnected

      public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
      Overrides:
      channelConnected in class org.jboss.netty.channel.SimpleChannelHandler
      Throws:
      Exception
    • channelDisconnected

      public void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
      Overrides:
      channelDisconnected in class org.jboss.netty.channel.SimpleChannelHandler
      Throws:
      Exception
    • messageReceived

      public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws Exception
      Overrides:
      messageReceived in class org.jboss.netty.channel.SimpleChannelHandler
      Throws:
      Exception
    • writeRequested

      public void writeRequested(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws Exception
      Overrides:
      writeRequested 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