public class BGPDispatcherImpl extends Object implements BGPDispatcher, AutoCloseable
Constructor and Description |
---|
BGPDispatcherImpl(MessageRegistry messageRegistry,
io.netty.channel.EventLoopGroup bossGroup,
io.netty.channel.EventLoopGroup workerGroup,
BGPPeerRegistry bgpPeerRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
io.netty.util.concurrent.Future<BGPSessionImpl> |
createClient(InetSocketAddress localAddress,
InetSocketAddress remoteAddress,
int retryTimer,
boolean reuseAddress) |
io.netty.util.concurrent.Future<BGPSessionImpl> |
createClient(InetSocketAddress remoteAddress,
int retryTimer)
Creates BGP client.
|
io.netty.util.concurrent.Future<Void> |
createReconnectingClient(InetSocketAddress remoteAddress,
int retryTimer,
KeyMapping keys)
Creates Reconnecting client.
|
io.netty.channel.ChannelFuture |
createServer(InetSocketAddress serverAddress)
Create new BGP server to accept incoming bgp connections (bound to provided socket localAddress).
|
BGPPeerRegistry |
getBGPPeerRegistry()
Return BGP Peer Registry
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createReconnectingClient
public BGPDispatcherImpl(MessageRegistry messageRegistry, io.netty.channel.EventLoopGroup bossGroup, io.netty.channel.EventLoopGroup workerGroup, BGPPeerRegistry bgpPeerRegistry)
public io.netty.util.concurrent.Future<BGPSessionImpl> createClient(InetSocketAddress remoteAddress, int retryTimer)
BGPDispatcher
createClient
in interface BGPDispatcher
remoteAddress
- remote Peer addressretryTimer
- Retry timerpublic io.netty.util.concurrent.Future<BGPSessionImpl> createClient(InetSocketAddress localAddress, InetSocketAddress remoteAddress, int retryTimer, boolean reuseAddress)
public void close() throws InterruptedException
close
in interface AutoCloseable
InterruptedException
public io.netty.util.concurrent.Future<Void> createReconnectingClient(InetSocketAddress remoteAddress, int retryTimer, KeyMapping keys)
BGPDispatcher
createReconnectingClient
in interface BGPDispatcher
remoteAddress
- remote Peer AddressretryTimer
- Retry timerkeys
- for TCPMD5public io.netty.channel.ChannelFuture createServer(InetSocketAddress serverAddress)
BGPDispatcher
createServer
in interface BGPDispatcher
serverAddress
- Peer localAddresspublic BGPPeerRegistry getBGPPeerRegistry()
BGPDispatcher
getBGPPeerRegistry
in interface BGPDispatcher
Copyright © 2018 OpenDaylight. All rights reserved.