Add NettyBootstrapFactory to hold OVSDB network threads 58/86258/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 3 Dec 2019 15:26:59 +0000 (16:26 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 6 Dec 2019 10:40:39 +0000 (11:40 +0100)
commit6e866767111cb3959ec70f37e7fe39a637272e1c
tree4bd0c95df8260deadfd895926498d70e1cf30a2c
parent335bc7a16ad64f252990c7991dbdb7250badee74
Add NettyBootstrapFactory to hold OVSDB network threads

OvsdbConnectionService is rather bad at using threads efficiently,
as each individual client creates its own EventLoopGroup, which is
not shared with anyone.

This refactors bootstrap generation, so that it is tied to a global
thread factory.

JIRA: OVSDB-411
Change-Id: Ie16e123fa3de87fd4f148c54e610515db3f1de9e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit b49f959e3024f4385af914b8779c0e31a330cf99)
library/impl/pom.xml
library/impl/src/main/java/org/opendaylight/ovsdb/lib/impl/NettyBootstrapFactory.java [new file with mode: 0644]
library/impl/src/main/java/org/opendaylight/ovsdb/lib/impl/OvsdbConnectionService.java