public class PCEPDispatcherImpl extends Object implements PCEPDispatcher, Closeable
Modifier and Type | Class and Description |
---|---|
protected static interface |
PCEPDispatcherImpl.ChannelPipelineInitializer |
Constructor and Description |
---|
PCEPDispatcherImpl(MessageRegistry registry,
PCEPSessionNegotiatorFactory<PCEPSessionImpl> negotiatorFactory,
io.netty.channel.EventLoopGroup bossGroup,
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 © 2019 OpenDaylight. All rights reserved.