X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Frpc%2Fimpl%2FBrokerRpcExecutor.java;h=146e69f0112214792c9b7067025615e922bb5408;hp=249b657d496218b40c4893c22d9f16ebc48f1b92;hb=17d82f582a6bc13c78be3b19954ff8c021180e93;hpb=26da3c2a206a753356b507b018052cbb9cccca7d diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/rpc/impl/BrokerRpcExecutor.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/rpc/impl/BrokerRpcExecutor.java index 249b657d49..146e69f011 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/rpc/impl/BrokerRpcExecutor.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/rpc/impl/BrokerRpcExecutor.java @@ -1,12 +1,13 @@ /* -* Copyright (c) 2014 Brocade Communications Systems, Inc. and others. All rights reserved. -* -* This program and the accompanying materials are made available under the -* terms of the Eclipse Public License v1.0 which accompanies this distribution, -* and is available at http://www.eclipse.org/legal/epl-v10.html -*/ + * Copyright (c) 2014 Brocade Communications Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ package org.opendaylight.controller.sal.restconf.rpc.impl; +import java.util.concurrent.Future; import org.opendaylight.controller.sal.restconf.impl.BrokerFacade; import org.opendaylight.yangtools.yang.common.RpcResult; import org.opendaylight.yangtools.yang.data.api.CompositeNode; @@ -15,14 +16,13 @@ import org.opendaylight.yangtools.yang.model.api.RpcDefinition; public class BrokerRpcExecutor extends AbstractRpcExecutor { private final BrokerFacade broker; - public BrokerRpcExecutor( RpcDefinition rpcDef, BrokerFacade broker ) - { - super( rpcDef ); + public BrokerRpcExecutor(RpcDefinition rpcDef, BrokerFacade broker) { + super(rpcDef); this.broker = broker; } @Override - public RpcResult invokeRpc(CompositeNode rpcRequest) { - return getRpcResult( broker.invokeRpc( getRpcDefinition().getQName(), rpcRequest ) ); + protected Future> invokeRpcUnchecked(CompositeNode rpcRequest) { + return broker.invokeRpc(getRpcDefinition().getQName(), rpcRequest); } } \ No newline at end of file