Class PCEPDispatcherImpl

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.opendaylight.protocol.pcep.PCEPDispatcher

    public class PCEPDispatcherImpl
    extends Object
    implements org.opendaylight.protocol.pcep.PCEPDispatcher, Closeable
    Implementation of PCEPDispatcher.
    • Constructor Detail

      • PCEPDispatcherImpl

        public PCEPDispatcherImpl​(@NonNull org.opendaylight.protocol.pcep.spi.MessageRegistry registry,
                                  @NonNull org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory<PCEPSessionImpl> negotiatorFactory,
                                  @NonNull io.netty.channel.EventLoopGroup bossGroup,
                                  @NonNull io.netty.channel.EventLoopGroup workerGroup)
        Creates an instance of PCEPDispatcherImpl, gets the default selector and opens it.
        Parameters:
        registry - a message registry
        negotiatorFactory - a negotiation factory
        bossGroup - accepts an incoming connection
        workerGroup - handles the traffic of accepted connection
    • Method Detail

      • createServer

        public final io.netty.channel.ChannelFuture createServer​(org.opendaylight.protocol.pcep.PCEPDispatcherDependencies dispatcherDependencies)
        Specified by:
        createServer in interface org.opendaylight.protocol.pcep.PCEPDispatcher
      • getPCEPSessionNegotiatorFactory

        public final org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory<PCEPSessionImpl> getPCEPSessionNegotiatorFactory()
        Specified by:
        getPCEPSessionNegotiatorFactory in interface org.opendaylight.protocol.pcep.PCEPDispatcher