Do not use RpcService in srm-impl components 63/107763/11
authorlubos-cicut <lubos.cicut@pantheon.tech>
Tue, 12 Sep 2023 11:45:52 +0000 (13:45 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Sep 2023 19:38:08 +0000 (21:38 +0200)
commitded56e87b38385afc4c1bd24ed262f2009323b2c
treed5341ef77e97e5c08d500932e71b052d005b23b6
parentd6d06853f605111e34c567bd6b07d567ab979d9d
Do not use RpcService in srm-impl components

Ditch the dependency on OdlSrmRpcsService and define a more natural
interface, RegistryControl, for use with the shell. This avoids some amount
of boiler plate, as we do not have to deal with the entire RPC dispatch
stack.

While we are here, also clean up pom.xmls to eliminate dependency
warnings.

JIRA: SRVUTILS-10
Change-Id: I218d7b6681270ea72fbc103f15199431a64fe50e
Signed-off-by: lubos-cicut <lubos.cicut@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
srm/api/src/main/java/org/opendaylight/serviceutils/srm/spi/RegistryControl.java [new file with mode: 0644]
srm/impl/pom.xml
srm/impl/src/main/java/org/opendaylight/serviceutils/srm/impl/RegistryControlImpl.java [moved from srm/impl/src/main/java/org/opendaylight/serviceutils/srm/impl/SrmRpcUtils.java with 84% similarity]
srm/impl/src/main/java/org/opendaylight/serviceutils/srm/impl/SrmRpcProvider.java [deleted file]
srm/shell/pom.xml
srm/shell/src/main/java/org/opendaylight/serviceutils/srm/shell/RecoverCommand.java
srm/shell/src/main/java/org/opendaylight/serviceutils/srm/shell/ReinstallCommand.java