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 interface
PCEPDispatcherImpl.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 void
close()
io.netty.channel.ChannelFuture
createServer(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: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
public final PCEPSessionNegotiatorFactory<PCEPSessionImpl> getPCEPSessionNegotiatorFactory()
- Specified by:
getPCEPSessionNegotiatorFactory
in interfacePCEPDispatcher
-
-