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%2Fsal%2Fcore%2Fapi%2FRpcImplementation.java;fp=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2Fapi%2FRpcImplementation.java;h=0000000000000000000000000000000000000000;hp=5055ad1430b1d584f9918e8b76101d766105a543;hb=e42f84e6d4567f36caad1c4162660bb32a473071;hpb=1e12c13aaec75493f70dd759208181f45c385102 diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/RpcImplementation.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/RpcImplementation.java deleted file mode 100644 index 5055ad1430..0000000000 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/RpcImplementation.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.controller.sal.core.api; - -import com.google.common.util.concurrent.ListenableFuture; -import java.util.Set; -import org.opendaylight.yangtools.yang.common.QName; -import org.opendaylight.yangtools.yang.common.RpcResult; -import org.opendaylight.yangtools.yang.data.api.CompositeNode; - -/** - * {@link Provider}'s implementation of an RPC. - * - * In order to expose an RPC to other components, the provider MUST register - * a concrete implementation of this interface. - * - * The registration could be done by : - * - * - * The simplified process of the invocation of rpc is following: - * - *
    - *
  1. {@link Consumer} invokes - * {@link org.opendaylight.controller.sal.core.api.Broker.ConsumerSession#rpc(QName, CompositeNode)} - *
  2. {@link Broker} finds registered {@link RpcImplementation}s - *
  3. {@link Broker} invokes - * {@link RpcImplementation#invokeRpc(QName, CompositeNode)} - *
  4. {@link RpcImplementation} processes the data and returns a - * {@link RpcResult} - *
  5. {@link Broker} returns the {@link RpcResult} to {@link Consumer} - *
- * - * @deprecated Use {@link org.opendaylight.controller.md.sal.dom.api.DOMRpcImplementation} instead. - */ -@Deprecated -public interface RpcImplementation extends Provider.ProviderFunctionality { - - /** - * A set of rpc types supported by implementation. - * - * The set of rpc {@link QName}s which are supported by this implementation. - * This set is used, when {@link Provider} is registered to the SAL, to - * register and expose the implementation of the returned rpcs. - * - * @return Set of QNames identifying supported RPCs - */ - Set getSupportedRpcs(); - - /** - * Invokes a implementation of specified RPC asynchronously. - * - * @param rpc - * RPC to be invoked - * @param input - * Input data for the RPC. - * - * @throws IllegalArgumentException - * - * @return Future promising an RpcResult containing the output of - * the RPC if was executed successfully, the list of errors - * otherwise. - */ - ListenableFuture> invokeRpc(QName rpc, CompositeNode input); -}