X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=ovsdb%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fovsdb%2Fplugin%2FConnectionService.java;h=e94e8988b96043e222bc64ed7f5b316b88aea9c0;hb=663f33be3f4b3dfd7545c176e44af412f064e020;hp=14189d20f48f32c5ceb9d0054838883c85bef76d;hpb=9614fec6a0910c23fbb77ae29f202f58a079a386;p=netvirt.git diff --git a/ovsdb/src/main/java/org/opendaylight/ovsdb/plugin/ConnectionService.java b/ovsdb/src/main/java/org/opendaylight/ovsdb/plugin/ConnectionService.java index 14189d20f4..e94e8988b9 100755 --- a/ovsdb/src/main/java/org/opendaylight/ovsdb/plugin/ConnectionService.java +++ b/ovsdb/src/main/java/org/opendaylight/ovsdb/plugin/ConnectionService.java @@ -41,6 +41,17 @@ public class ConnectionService implements IPluginInConnectionService, IConnectio private static final Integer defaultOvsdbPort = 6632; ConcurrentMap ovsdbConnections; List handlers = null; + InventoryServiceInternal inventoryServiceInternal; + + public void setInventoryServiceInternal(InventoryServiceInternal inventoryServiceInternal) { + this.inventoryServiceInternal = inventoryServiceInternal; + } + + public void unsetInventoryServiceInternal(InventoryServiceInternal inventoryServiceInternal) { + if (this.inventoryServiceInternal == inventoryServiceInternal) { + this.inventoryServiceInternal = null; + } + } public void init() { ovsdbConnections = new ConcurrentHashMap();