Class BGPDispatcherImpl
- java.lang.Object
-
- org.opendaylight.protocol.bgp.rib.impl.BGPDispatcherImpl
-
- All Implemented Interfaces:
AutoCloseable
,BGPDispatcher
public class BGPDispatcherImpl extends Object implements BGPDispatcher, AutoCloseable
Implementation of BGPDispatcher.
-
-
Constructor Summary
Constructors Constructor Description BGPDispatcherImpl(MessageRegistry messageRegistry, io.netty.channel.EventLoopGroup bossGroup, io.netty.channel.EventLoopGroup workerGroup, BGPPeerRegistry bgpPeerRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
io.netty.util.concurrent.Future<BGPSessionImpl>
createClient(InetSocketAddress localAddress, InetSocketAddress remoteAddress, int retryTimer, boolean reuseAddress)
io.netty.util.concurrent.Future<Void>
createReconnectingClient(InetSocketAddress remoteAddress, InetSocketAddress localAddress, 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.
-
-
-
Constructor Detail
-
BGPDispatcherImpl
public BGPDispatcherImpl(MessageRegistry messageRegistry, io.netty.channel.EventLoopGroup bossGroup, io.netty.channel.EventLoopGroup workerGroup, BGPPeerRegistry bgpPeerRegistry)
-
-
Method Detail
-
createClient
public io.netty.util.concurrent.Future<BGPSessionImpl> createClient(InetSocketAddress localAddress, InetSocketAddress remoteAddress, int retryTimer, boolean reuseAddress)
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
createReconnectingClient
public io.netty.util.concurrent.Future<Void> createReconnectingClient(InetSocketAddress remoteAddress, InetSocketAddress localAddress, int retryTimer, KeyMapping keys)
Description copied from interface:BGPDispatcher
Creates Reconnecting client.- Specified by:
createReconnectingClient
in interfaceBGPDispatcher
- Parameters:
remoteAddress
- remote Peer AddresslocalAddress
- local Peer addressretryTimer
- Retry timerkeys
- for TCPMD5- Returns:
- Future promising a client session
-
createServer
public io.netty.channel.ChannelFuture createServer(InetSocketAddress serverAddress)
Description copied from interface:BGPDispatcher
Create new BGP server to accept incoming bgp connections (bound to provided socket localAddress).- Specified by:
createServer
in interfaceBGPDispatcher
- Parameters:
serverAddress
- Peer localAddress- Returns:
- ChannelFuture promising a client session
-
getBGPPeerRegistry
public BGPPeerRegistry getBGPPeerRegistry()
Description copied from interface:BGPDispatcher
Return BGP Peer Registry.- Specified by:
getBGPPeerRegistry
in interfaceBGPDispatcher
- Returns:
- BGPPeerRegistry
-
-