Merge "BUG-614: introduce AbstractRuntimeCodeGenerator"
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / sal / core / api / RpcConsumptionRegistry.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.sal.core.api;
9
10 import java.util.concurrent.Future;
11
12 import org.opendaylight.yangtools.yang.common.QName;
13 import org.opendaylight.yangtools.yang.common.RpcResult;
14 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
15
16 public interface RpcConsumptionRegistry {
17     /**
18      * Sends an RPC to other components registered to the broker.
19      *
20      * @see RpcImplementation
21      * @param rpc
22      *            Name of RPC
23      * @param input
24      *            Input data to the RPC
25      * @return Result of the RPC call
26      */
27     Future<RpcResult<CompositeNode>> rpc(QName rpc, CompositeNode input);
28
29 }