Make OvsdbConnectionService instance-only 75/72875/3
authorStephen Kitt <skitt@redhat.com>
Tue, 12 Jun 2018 09:01:58 +0000 (11:01 +0200)
committerVishal Thapar <vthapar@redhat.com>
Sat, 16 Jun 2018 05:27:12 +0000 (05:27 +0000)
commitfc8cc20d7f5f6b4951e2b389ae2f40008385a339
tree43250016be7f91a6efce2fe4718eea637e989877
parent5a6d1743eea1d8628e93544d00bc9ae21217aab8
Make OvsdbConnectionService instance-only

This patch ensures that the volatile data managed by
OvsdbConnectionService is stored per instance, and it removes the
static initialiser and all non-BluePrint instantiations. Other library
users can still create their own instances if necessary, but the
library code will no longer create multiple instances by default,
ensuring that BluePrint-mediated configuration changes are applied.

Change-Id: I41ca0c679d68e7dfeba3b5fd503194180358a9a2
JIRA: OVSDB-465
Signed-off-by: Stephen Kitt <skitt@redhat.com>
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepConnectionManager.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepSouthboundProvider.java
library/impl/src/main/java/org/opendaylight/ovsdb/lib/impl/OvsdbConnectionService.java
library/impl/src/main/java/org/opendaylight/ovsdb/lib/jsonrpc/ExceptionHandler.java
library/impl/src/main/resources/org/opendaylight/blueprint/library.xml
southbound/southbound-impl/src/test/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManagerTest.java