Class PCEPDispatcherImpl
java.lang.Object
org.opendaylight.protocol.pcep.impl.PCEPDispatcherImpl
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PCEPDispatcher
Implementation of PCEPDispatcher.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
-
Constructor Summary
ConstructorDescriptionPCEPDispatcherImpl
(@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 void
close()
final io.netty.channel.ChannelFuture
createServer
(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:PCEPDispatcher
Creates server. Each server needs three factories to pass their instances to client sessions.- Specified by:
createServer
in interfacePCEPDispatcher
- Parameters:
dispatcherDependencies
- contains required dependencies for instantiate a PCEP Server- Returns:
- instance of PCEPServer
-
close
public final void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getPCEPSessionNegotiatorFactory
- Specified by:
getPCEPSessionNegotiatorFactory
in interfacePCEPDispatcher
-