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=82de4b02a2f108ddc1c85d9415b7744f7e5c7192;hp=4a4f9656ba6db1fc444f3809d7b7a16844756a4f;hb=aa342f77a044988c1f6a0deaf9f7e94373f2dfb5;hpb=a3737302942580f13ca9988647873b83985895ed 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..82de4b02a2 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,8 +11,23 @@ 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. */ public interface DOMRpcProviderService extends DOMService { /** @@ -25,7 +40,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 +52,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); }