Add NettyBootstrapFactory to hold OVSDB network threads 53/86253/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 3 Dec 2019 15:26:59 +0000 (16:26 +0100)
committerAnil Belur <abelur@linuxfoundation.org>
Sun, 9 Feb 2020 06:27:45 +0000 (06:27 +0000)
commit85b6d1a088b5b03037da8e1c4dd9dcf00e5368b8
tree64b3b71a4da67a1f169b18bcb6c441b92a202b8a
parentfd925bf08ba4134899a7886686bf5b06621fafdc
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