Class PCEPDispatcherImpl

java.lang.Object
org.opendaylight.protocol.pcep.impl.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.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static interface 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
     
    final io.netty.channel.ChannelFuture
    createServer(org.opendaylight.protocol.pcep.PCEPDispatcherDependencies dispatcherDependencies)
     
    final org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory<PCEPSessionImpl>
     

    Methods inherited from class java.lang.Object

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

    • 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 Details

    • createServer

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

      public final void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • getPCEPSessionNegotiatorFactory

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