Bump upstreams Adopt: - yangtools-13.0.1 - mdsal-13.0.0 Also adopts AbstractDOMDataBroker from mdsal-dom-spi, so that we have less code duplication and maintenance. UTs mocking NormalizedNode are updated to ContainerNode, as mocking sealed classes does not work with Mockito (out of the box). Change-Id: I6d3d3c8ced297b6850aea951040d16437df9e3f0 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Use constructor injection in OSGiDistributedDataStore Upgraded SpotBugs does not like unitialized fields. Use constructor injection to properly set them up. Change-Id: I8d5226a8b0b6b2929eba3d4d9a73ac8e1c72613a Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Use FrameworkUtil.asDictionary() We do not need a Hashtable, use FrameworkUtil to give us what we need. Change-Id: I50099a7b8f036d7f7f8af467242005e74b48d89d Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Fix raw type warnings in OSGiDistributedDataStore Component{Factory,Instance} are now properly generic, specify arguments pointing to OSGiDOMStore. Change-Id: I4593b18df88302f933647ed09818633d76efca41 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Fix initial datastore configuration Shards need to be initialized with initial configuration upon creation, otherwise they end up being reconfigured. Make sure callers are aware of this caveat by requiring explicit properties on instantiation. JIRA: CONTROLLER-1970 Change-Id: I3d6f96780d26435ac178ec9935f0f67befe3687a Signed-off-by: tadei.bilan <tadei.bilan@pantheon.tech> Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Enable modernizer in sal-distributed-datastore We are down to a single offender, suppress it and enable moderinizer enforcement. Change-Id: I9daf9f54276c48aac09e999327add7ade92dfc95 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Instantiate distributed datastore asynchronously With OSGi DS we can have very explicit control over component activations. Use component factory pattern, which provides async publish of DOMStore into service registry. This allows us to make startup asynchronous). JIRA: CONTROLLER-1882 Change-Id: Id09f956ec9088388ec5cbd3162d128310baddf51 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>