public abstract class RpcServiceInvoker extends Object
RpcService.
 via invokeRpc(RpcService, QName, DataObject) method.| Constructor and Description | 
|---|
RpcServiceInvoker()  | 
| Modifier and Type | Method and Description | 
|---|---|
static RpcServiceInvoker | 
from(Class<? extends RpcService> type)
Creates RPCServiceInvoker for specified RpcService type 
 | 
static RpcServiceInvoker | 
from(Map<org.opendaylight.yangtools.yang.common.QName,Method> qnameToMethod)
Creates an RPCServiceInvoker for specified QName-<Method mapping. 
 | 
abstract Future<org.opendaylight.yangtools.yang.common.RpcResult<?>> | 
invokeRpc(RpcService impl,
         org.opendaylight.yangtools.yang.common.QName rpcName,
         DataObject input)
Invokes supplied RPC on provided implementation of RPC Service. 
 | 
public static RpcServiceInvoker from(Class<? extends RpcService> type)
type - RpcService interface, which was generated from model.RpcServiceInvoker for supplied RPC type.public static RpcServiceInvoker from(Map<org.opendaylight.yangtools.yang.common.QName,Method> qnameToMethod)
qnameToMethod - translation mapping, must not be null nor empty.RpcMethodInvoker instance.public abstract Future<org.opendaylight.yangtools.yang.common.RpcResult<?>> invokeRpc(@Nonnull RpcService impl, @Nonnull org.opendaylight.yangtools.yang.common.QName rpcName, @Nullable DataObject input)
impl - Imlementation on which RPC should be invoked.rpcName - Name of RPC to be invoked.input - Input data for RPC.Copyright © 2018 OpenDaylight. All rights reserved.