Cache full datastore context 71/87071/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 21 Jan 2020 22:31:31 +0000 (23:31 +0100)
committerRobert Varga <nite@hq.sk>
Tue, 28 Jan 2020 17:21:29 +0000 (17:21 +0000)
commitda1c4f4a024472c0e8c340ba78d104a72f39785f
treefb0b9de7330863893768888ccb99cc8e07af5501
parentd19cf96d390ffcdba8b1f64a6dd3f3749ecc5872
Cache full datastore context

While the context is small, it is also invariant across a number of
test cases, each of which is instantiating it. Just share one
instance across all tests to speed them up.

While we are at it, we switch to using EffectiveModelContext to
ease our future migration.

Change-Id: I29a89e93903e7582bde4984828405aa2a8e45c27
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/md/cluster/datastore/model/SchemaContextHelper.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.