use of org.opendaylight.mdsal.dom.api.DOMRpcResult in project mdsal by opendaylight.
the class BindingDOMRpcImplementationAdapter method invokeRpc.
@Override
public ListenableFuture<DOMRpcResult> invokeRpc(final DOMRpcIdentifier rpc, final NormalizedNode input) {
final QName rpcType = rpc.getType();
final CurrentAdapterSerializer serializer = adapterContext.currentSerializer();
final DataObject bindingInput = input != null ? deserialize(serializer, rpcType, input) : null;
final ListenableFuture<RpcResult<?>> bindingResult = invoke(rpcType, bindingInput);
return LazyDOMRpcResultFuture.create(serializer, bindingResult);
}
Aggregations