Class AbstractSessionNegotiator

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, org.opendaylight.protocol.pcep.SessionNegotiator
    Direct Known Subclasses:
    AbstractPCEPSessionNegotiator, PCEPSessionNegotiator

    public abstract class AbstractSessionNegotiator
    extends io.netty.channel.ChannelInboundHandlerAdapter
    implements org.opendaylight.protocol.pcep.SessionNegotiator
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected io.netty.channel.Channel channel  
      protected io.netty.util.concurrent.Promise<PCEPSessionImpl> promise  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractSessionNegotiator​(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise, io.netty.channel.Channel channel)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void channelActive​(io.netty.channel.ChannelHandlerContext ctx)  
      void channelRead​(io.netty.channel.ChannelHandlerContext ctx, Object msg)  
      void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)  
      protected abstract void handleMessage​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Message msg)  
      protected void negotiationFailed​(Throwable cause)  
      protected void negotiationSuccessful​(PCEPSessionImpl session)  
      protected void sendMessage​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Message msg)  
      protected abstract void startNegotiation()  
      • Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

        channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from interface io.netty.channel.ChannelHandler

        handlerAdded, handlerRemoved
      • Methods inherited from interface io.netty.channel.ChannelInboundHandler

        channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
    • Field Detail

      • channel

        protected final io.netty.channel.Channel channel
      • promise

        protected final io.netty.util.concurrent.Promise<PCEPSessionImpl> promise
    • Constructor Detail

      • AbstractSessionNegotiator

        protected AbstractSessionNegotiator​(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise,
                                            io.netty.channel.Channel channel)
    • Method Detail

      • negotiationSuccessful

        protected final void negotiationSuccessful​(PCEPSessionImpl session)
      • negotiationFailed

        protected void negotiationFailed​(Throwable cause)
      • sendMessage

        protected final void sendMessage​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Message msg)
      • channelActive

        public final void channelActive​(io.netty.channel.ChannelHandlerContext ctx)
        Specified by:
        channelActive in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelActive in class io.netty.channel.ChannelInboundHandlerAdapter
      • channelRead

        public final void channelRead​(io.netty.channel.ChannelHandlerContext ctx,
                                      Object msg)
        Specified by:
        channelRead in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelRead in class io.netty.channel.ChannelInboundHandlerAdapter
      • exceptionCaught

        public void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx,
                                    Throwable cause)
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelHandler
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter
      • handleMessage

        protected abstract void handleMessage​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Message msg)