Interface BmpDispatcher
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
BmpDispatcherImpl
@NonNullByDefault public interface BmpDispatcher extends AutoCloseable
Dispatcher class for creating servers and clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.netty.channel.ChannelFuture
createClient(InetSocketAddress address, BmpSessionListenerFactory slf, KeyMapping keys)
Creates reconnect clients.io.netty.channel.ChannelFuture
createServer(InetSocketAddress address, BmpSessionListenerFactory slf, KeyMapping keys)
Creates server.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
createServer
io.netty.channel.ChannelFuture createServer(InetSocketAddress address, BmpSessionListenerFactory slf, KeyMapping keys)
Creates server. Each server needs three factories to pass their instances to client sessions.- Parameters:
address
- to be bound with the serverslf
- bmp session listener factorykeys
- RFC2385 key mapping- Returns:
- instance of BmpServer
-
createClient
io.netty.channel.ChannelFuture createClient(InetSocketAddress address, BmpSessionListenerFactory slf, KeyMapping keys)
Creates reconnect clients. Make connection to all active monitored-routers.- Parameters:
address
- bmp client to connect toslf
- bmp session listener factorykeys
- RFC2385 key mapping- Returns:
- void
-
-