Class BmpDispatcherImpl
java.lang.Object
org.opendaylight.protocol.bmp.impl.BmpDispatcherImpl
- All Implemented Interfaces:
AutoCloseable,BmpDispatcher
-
Constructor Summary
ConstructorsConstructorDescriptionBmpDispatcherImpl(BmpNettyGroups nettyGroups, BmpExtensionConsumerContext ctx, BmpSessionFactory sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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 Details
-
BmpDispatcherImpl
public BmpDispatcherImpl(BmpNettyGroups nettyGroups, BmpExtensionConsumerContext ctx, BmpSessionFactory sessionFactory)
-
-
Method Details
-
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
@PreDestroy public void close()- Specified by:
closein interfaceAutoCloseable
-