Class PCEPDispatcherImpl

java.lang.Object
org.opendaylight.protocol.pcep.impl.PCEPDispatcherImpl
All Implemented Interfaces:
AutoCloseable, PCEPDispatcher

@Singleton @MetaInfServices public class PCEPDispatcherImpl extends Object implements PCEPDispatcher, AutoCloseable
Implementation of PCEPDispatcher.
  • Constructor Details

    • PCEPDispatcherImpl

      public PCEPDispatcherImpl()
    • PCEPDispatcherImpl

      public PCEPDispatcherImpl(PCEPDispatcherImpl.Configuration config)
    • PCEPDispatcherImpl

      @Inject public PCEPDispatcherImpl(int bossThreads, int workerThreads, int shutdownTimeSeconds)
  • Method Details

    • createServer

      public final io.netty.channel.ChannelFuture createServer(InetSocketAddress listenAddress, KeyMapping tcpKeys, MessageRegistry registry, PCEPSessionNegotiatorFactory negotiatorFactory)
      Description copied from interface: PCEPDispatcher
      Creates server. Each server needs three factories to pass their instances to client sessions.
      Specified by:
      createServer in interface PCEPDispatcher
      Parameters:
      listenAddress - Server listen address
      tcpKeys - RFC2385 TCP-MD5 keys
      registry - a message registry
      negotiatorFactory - a negotiation factory
      Returns:
      A future completing when the PCEP server is created
    • close

      @PreDestroy public final void close()
      Specified by:
      close in interface AutoCloseable