X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fapi%2FDOMRpcProviderService.java;h=9454214650e3cae7746add70077e95282f91e0a5;hp=4a4f9656ba6db1fc444f3809d7b7a16844756a4f;hb=899ccfb2052bc5b2c52828d6ccb04c16f9787784;hpb=c64ef5f44f131976c20fcf8ced56627f81091838 diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMRpcProviderService.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMRpcProviderService.java index 4a4f9656ba..9454214650 100644 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMRpcProviderService.java +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMRpcProviderService.java @@ -11,9 +11,27 @@ import java.util.Set; import javax.annotation.Nonnull; /** - * A {@link DOMService} which allows registration of RPC implementations with a conceptual - * router. The client counterpart of this service is {@link DOMRpcService}. + * A {@link DOMService} which allows registration of RPC implementations with a conceptual router. The client + * counterpart of this service is {@link DOMRpcService}. + * + *

+ * This interface supports both RFC6020 RPCs and RFC7950 actions (formerly known as 'Routed RPCs'. Invocation for + * RFC6020 RPCs is always based on an empty context reference. Invocation of actions requires a non-empty context + * reference and is matched against registered implementations as follows: + *

+ * + *

+ * All implementations are required to perform these steps as specified above. + * + * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMRpcProviderService} instead */ +@Deprecated public interface DOMRpcProviderService extends DOMService { /** * Register an {@link DOMRpcImplementation} object with this service. @@ -25,7 +43,8 @@ public interface DOMRpcProviderService extends DOMService { * @throws NullPointerException if implementation or types is null * @throws IllegalArgumentException if types is empty or contains a null element. */ - @Nonnull DOMRpcImplementationRegistration registerRpcImplementation(@Nonnull T implementation, @Nonnull DOMRpcIdentifier... rpcs); + @Nonnull DOMRpcImplementationRegistration registerRpcImplementation( + @Nonnull T implementation, @Nonnull DOMRpcIdentifier... rpcs); /** * Register an {@link DOMRpcImplementation} object with this service. @@ -36,5 +55,6 @@ public interface DOMRpcProviderService extends DOMService { * @throws NullPointerException if implementation or types is null * @throws IllegalArgumentException if types is empty or contains a null element. */ - @Nonnull DOMRpcImplementationRegistration registerRpcImplementation(@Nonnull T implementation, @Nonnull Set rpcs); + @Nonnull DOMRpcImplementationRegistration registerRpcImplementation( + @Nonnull T implementation, @Nonnull Set rpcs); }