Optimization to read the HwvtepNode from the cache. 19/83319/2
authorChandra Shekar S <chandra.shekar.s@ericsson.com>
Tue, 30 Jul 2019 10:08:03 +0000 (15:38 +0530)
committerAnil Vishnoi <vishnoianil@gmail.com>
Thu, 1 Aug 2019 07:17:15 +0000 (07:17 +0000)
commit1d8b73adbaa3aed0fb68f5da4136d29906066b41
tree86623c454c21d19b72ef5ec7aa2199428ceea315
parentcfab9e1aefdd0c7bdb09770309f8ad05c4c2c6ce
Optimization to read the HwvtepNode from the cache.

JIRA: OVSDB-485

Currently in the HwvtepSouthbound plugin reads the HwvtepNode from the datastore.
Reading the HwvtepNode from the datastore ineffecient, even the same info
is present in HwvtepSouthbound plugin cache.

This review is avoid the HwvtepNode reads from the datastore and get it from the cache.
If the node is not present in the cache, then read from datastore.

Signed-off-by: Chandra Shekar S <chandra.shekar.s@ericsson.com>
Change-Id: I1f15ff31b195a79a1725e63882512b87d40c5838
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepOperGlobalListener.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepSouthboundUtil.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/reconciliation/configuration/HwvtepReconciliationTask.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transact/UnMetDependencyGetter.java