Merge "Bug:129 Connection Manager Dashlet"
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / sal / core / api / RpcConsumptionRegistry.java
1 package org.opendaylight.controller.sal.core.api;
2
3 import java.util.concurrent.Future;
4
5 import org.opendaylight.yangtools.yang.common.QName;
6 import org.opendaylight.yangtools.yang.common.RpcResult;
7 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
8
9 public interface RpcConsumptionRegistry {
10     /**
11      * Sends an RPC to other components registered to the broker.
12      * 
13      * @see RpcImplementation
14      * @param rpc
15      *            Name of RPC
16      * @param input
17      *            Input data to the RPC
18      * @return Result of the RPC call
19      */
20     Future<RpcResult<CompositeNode>> rpc(QName rpc, CompositeNode input);
21
22 }