Class BmpDispatcherImpl
- java.lang.Object
-
- org.opendaylight.protocol.bmp.impl.BmpDispatcherImpl
-
- All Implemented Interfaces:
AutoCloseable
,BmpDispatcher
public class BmpDispatcherImpl extends Object implements BmpDispatcher, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description BmpDispatcherImpl(io.netty.channel.EventLoopGroup bossGroup, io.netty.channel.EventLoopGroup workerGroup, BmpExtensionConsumerContext ctx, BmpSessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
io.netty.channel.ChannelFuture
createClient(InetSocketAddress remoteAddress, BmpSessionListenerFactory slf, KeyMapping keys)
Creates reconnect clients.io.netty.channel.ChannelFuture
createServer(InetSocketAddress address, BmpSessionListenerFactory slf, KeyMapping keys)
Creates server.
-
-
-
Constructor Detail
-
BmpDispatcherImpl
public BmpDispatcherImpl(io.netty.channel.EventLoopGroup bossGroup, io.netty.channel.EventLoopGroup workerGroup, BmpExtensionConsumerContext ctx, BmpSessionFactory sessionFactory)
-
-
Method Detail
-
createClient
public io.netty.channel.ChannelFuture createClient(InetSocketAddress remoteAddress, BmpSessionListenerFactory slf, KeyMapping keys)
Description copied from interface:BmpDispatcher
Creates reconnect clients. Make connection to all active monitored-routers.- Specified by:
createClient
in interfaceBmpDispatcher
- Parameters:
remoteAddress
- bmp client to connect toslf
- bmp session listener factorykeys
- RFC2385 key mapping- Returns:
- void
-
createServer
public io.netty.channel.ChannelFuture createServer(InetSocketAddress address, BmpSessionListenerFactory slf, KeyMapping keys)
Description copied from interface:BmpDispatcher
Creates server. Each server needs three factories to pass their instances to client sessions.- Specified by:
createServer
in interfaceBmpDispatcher
- Parameters:
address
- to be bound with the serverslf
- bmp session listener factorykeys
- RFC2385 key mapping- Returns:
- instance of BmpServer
-
close
@PreDestroy public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-