Class PCEPDispatcherImpl
java.lang.Object
org.opendaylight.protocol.pcep.impl.PCEPDispatcherImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,PCEPDispatcher
Implementation of PCEPDispatcher.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface -
Constructor Summary
ConstructorsConstructorDescriptionPCEPDispatcherImpl(@NonNull MessageRegistry registry, @NonNull 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 TypeMethodDescriptionfinal voidclose()final io.netty.channel.ChannelFuturecreateServer(PCEPDispatcherDependencies dispatcherDependencies) Creates server.
-
Constructor Details
-
PCEPDispatcherImpl
public PCEPDispatcherImpl(@NonNull MessageRegistry registry, @NonNull 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 registrynegotiatorFactory- a negotiation factorybossGroup- accepts an incoming connectionworkerGroup- handles the traffic of accepted connection
-
-
Method Details
-
createServer
public final io.netty.channel.ChannelFuture createServer(PCEPDispatcherDependencies dispatcherDependencies) Description copied from interface:PCEPDispatcherCreates server. Each server needs three factories to pass their instances to client sessions.- Specified by:
createServerin interfacePCEPDispatcher- Parameters:
dispatcherDependencies- contains required dependencies for instantiate a PCEP Server- Returns:
- instance of PCEPServer
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getPCEPSessionNegotiatorFactory
- Specified by:
getPCEPSessionNegotiatorFactoryin interfacePCEPDispatcher
-