- public Future<RpcResult<CompositeNode>> invokeRpc(final QName type, final CompositeNode payload) {
- this.checkPreconditions();
-
- return context.rpc(type, payload);
+ public CheckedFuture<DOMRpcResult, DOMRpcException> invokeRpc(final SchemaPath type, final NormalizedNode<?, ?> input) {
+ checkPreconditions();
+ if (rpcService == null) {
+ throw new RestconfDocumentedException(Status.SERVICE_UNAVAILABLE);
+ }
+ return rpcService.invokeRpc(type, input);