Class BmpDispatcherImpl
java.lang.Object
org.opendaylight.protocol.bmp.impl.BmpDispatcherImpl
- All Implemented Interfaces:
AutoCloseable
,BmpDispatcher
-
Constructor Summary
ConstructorDescriptionBmpDispatcherImpl
(io.netty.channel.EventLoopGroup bossGroup, io.netty.channel.EventLoopGroup workerGroup, BmpExtensionConsumerContext ctx, BmpSessionFactory sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
BmpDispatcherImpl
public BmpDispatcherImpl(io.netty.channel.EventLoopGroup bossGroup, io.netty.channel.EventLoopGroup workerGroup, BmpExtensionConsumerContext ctx, BmpSessionFactory sessionFactory)
-
-
Method Details
-
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
-