public class PCEPDispatcherImpl extends Object implements PCEPDispatcher, Closeable
Modifier and Type | Class and Description |
---|---|
protected static interface |
PCEPDispatcherImpl.ChannelPipelineInitializer |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
io.netty.channel.ChannelFuture |
createServer(PCEPDispatcherDependencies dispatcherDependencies)
Creates server.
|
PCEPSessionNegotiatorFactory<PCEPSessionImpl> |
getPCEPSessionNegotiatorFactory() |
public PCEPDispatcherImpl(@NonNull MessageRegistry registry, @NonNull PCEPSessionNegotiatorFactory<PCEPSessionImpl> negotiatorFactory, @NonNull io.netty.channel.EventLoopGroup bossGroup, @NonNull io.netty.channel.EventLoopGroup workerGroup)
registry
- a message registrynegotiatorFactory
- a negotiation factorybossGroup
- accepts an incoming connectionworkerGroup
- handles the traffic of accepted connectionpublic final io.netty.channel.ChannelFuture createServer(PCEPDispatcherDependencies dispatcherDependencies)
PCEPDispatcher
createServer
in interface PCEPDispatcher
dispatcherDependencies
- contains required dependencies for instantiate a PCEP Serverpublic final void close()
close
in interface Closeable
close
in interface AutoCloseable
public final PCEPSessionNegotiatorFactory<PCEPSessionImpl> getPCEPSessionNegotiatorFactory()
getPCEPSessionNegotiatorFactory
in interface PCEPDispatcher
Copyright © 2020 OpenDaylight. All rights reserved.