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