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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfacestatic @interface -
Constructor Summary
ConstructorsConstructorDescriptionPCEPDispatcherImpl(int bossThreads, int workerThreads, int shutdownTimeSeconds) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()final io.netty.channel.ChannelFuturecreateServer(InetSocketAddress listenAddress, KeyMapping tcpKeys, MessageRegistry registry, PCEPSessionNegotiatorFactory negotiatorFactory) Creates server.
-
Constructor Details
-
PCEPDispatcherImpl
public PCEPDispatcherImpl() -
PCEPDispatcherImpl
-
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:PCEPDispatcherCreates server. Each server needs three factories to pass their instances to client sessions.- Specified by:
createServerin interfacePCEPDispatcher- Parameters:
listenAddress- Server listen addresstcpKeys- RFC2385 TCP-MD5 keysregistry- a message registrynegotiatorFactory- a negotiation factory- Returns:
- A future completing when the PCEP server is created
-
close
@PreDestroy public final void close()- Specified by:
closein interfaceAutoCloseable
-