public class PCEPDispatcherImpl extends Object implements org.opendaylight.protocol.pcep.PCEPDispatcher, Closeable
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
PCEPDispatcherImpl.ChannelPipelineInitializer |
| Constructor and Description |
|---|
PCEPDispatcherImpl(org.opendaylight.protocol.pcep.spi.MessageRegistry registry,
org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory 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(InetSocketAddress address,
com.google.common.base.Optional<org.opendaylight.protocol.concepts.KeyMapping> keys,
org.opendaylight.protocol.pcep.PCEPSessionListenerFactory listenerFactory,
org.opendaylight.protocol.pcep.PCEPPeerProposal peerProposal) |
io.netty.channel.ChannelFuture |
createServer(InetSocketAddress address,
org.opendaylight.protocol.pcep.PCEPSessionListenerFactory listenerFactory,
org.opendaylight.protocol.pcep.PCEPPeerProposal peerProposal) |
org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory |
getPCEPSessionNegotiatorFactory() |
public PCEPDispatcherImpl(@Nonnull org.opendaylight.protocol.pcep.spi.MessageRegistry registry, @Nonnull org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory 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(InetSocketAddress address, org.opendaylight.protocol.pcep.PCEPSessionListenerFactory listenerFactory, org.opendaylight.protocol.pcep.PCEPPeerProposal peerProposal)
createServer in interface org.opendaylight.protocol.pcep.PCEPDispatcherpublic final io.netty.channel.ChannelFuture createServer(InetSocketAddress address, com.google.common.base.Optional<org.opendaylight.protocol.concepts.KeyMapping> keys, org.opendaylight.protocol.pcep.PCEPSessionListenerFactory listenerFactory, org.opendaylight.protocol.pcep.PCEPPeerProposal peerProposal)
createServer in interface org.opendaylight.protocol.pcep.PCEPDispatcherpublic final void close()
close in interface Closeableclose in interface AutoCloseablepublic final org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory getPCEPSessionNegotiatorFactory()
getPCEPSessionNegotiatorFactory in interface org.opendaylight.protocol.pcep.PCEPDispatcherCopyright © 2017 OpenDaylight. All rights reserved.