Refactor RpcRoutingStrategy 13/103313/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 21 Nov 2022 18:47:31 +0000 (19:47 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 22 Nov 2022 13:45:17 +0000 (14:45 +0100)
commit60b826353c654c51febfbfdac5fbb65544ee0d24
tree8abd640c51e48c0c3ae1e9b54731062832e4245e
parent15c98a268eb948e03aa9d95777f4e4d71c1b447f
Refactor RpcRoutingStrategy

RpcRoutingStrategy is not really a nice construct -- it essentially
extracts context information, not much more. As such, dealing with two
subclasses is a drag.

Intruduce ContentRoutedRpcContext to capture the interesting information
in a record and adjust users to deal with the fact that normal RPCs do
not have this construct.

Change-Id: I2c8d24a61e6905063c9eb93fb0513dffe4831b66
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-adapter/src/main/java/org/opendaylight/mdsal/binding/dom/adapter/RpcServiceAdapter.java
dom/mdsal-dom-broker/src/main/java/org/opendaylight/mdsal/dom/broker/DOMRpcRoutingTable.java
dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/ContentRoutedRpcContext.java [new file with mode: 0644]
dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/RpcRoutingStrategy.java [deleted file]
dom/mdsal-dom-spi/src/test/java/org/opendaylight/mdsal/dom/spi/ContentRoutedRpcContextTest.java [moved from dom/mdsal-dom-spi/src/test/java/org/opendaylight/mdsal/dom/spi/RpcRoutingStrategyTest.java with 53% similarity]