X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Frpc%2Fimpl%2FBrokerRpcExecutor.java;h=7077a8bd161be1d09c57b8c78fa906e287e4f25b;hb=33c9769f6dd0dadd68e460c8f6d76a06b43bf146;hp=249b657d496218b40c4893c22d9f16ebc48f1b92;hpb=26da3c2a206a753356b507b018052cbb9cccca7d;p=controller.git 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..7077a8bd16 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,17 @@ 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(final RpcDefinition rpcDef, final BrokerFacade broker) { + super(rpcDef); this.broker = broker; } + /** + * @deprecated Method has to be removed for Lithium release + */ + @Deprecated @Override - public RpcResult invokeRpc(CompositeNode rpcRequest) { - return getRpcResult( broker.invokeRpc( getRpcDefinition().getQName(), rpcRequest ) ); + protected Future> invokeRpcUnchecked(final CompositeNode rpcRequest) { + throw new AbstractMethodError("Unsuported functionality"); } } \ No newline at end of file