Class PCEPDispatcherImpl
- java.lang.Object
-
- org.opendaylight.protocol.pcep.impl.PCEPDispatcherImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,PCEPDispatcher
public class PCEPDispatcherImpl extends Object implements PCEPDispatcher, Closeable
Implementation of PCEPDispatcher.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfacePCEPDispatcherImpl.ChannelPipelineInitializer
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()io.netty.channel.ChannelFuturecreateServer(PCEPDispatcherDependencies dispatcherDependencies)Creates server.PCEPSessionNegotiatorFactory<PCEPSessionImpl>getPCEPSessionNegotiatorFactory()
-
-
-
Constructor Detail
-
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 Detail
-
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
public final PCEPSessionNegotiatorFactory<PCEPSessionImpl> getPCEPSessionNegotiatorFactory()
- Specified by:
getPCEPSessionNegotiatorFactoryin interfacePCEPDispatcher
-
-