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
Modifier and TypeClassDescriptionprotected static interface
static @interface
-
Constructor Summary
ConstructorDescriptionPCEPDispatcherImpl
(int bossThreads, int workerThreads, int shutdownTimeSeconds) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
close()
final io.netty.channel.ChannelFuture
createServer
(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:PCEPDispatcher
Creates server. Each server needs three factories to pass their instances to client sessions.- Specified by:
createServer
in 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:
close
in interfaceAutoCloseable
-