2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.dom.broker;
10 import java.util.List;
12 import org.opendaylight.mdsal.dom.api.DOMRpcIdentifier;
13 import org.opendaylight.mdsal.dom.api.DOMRpcImplementation;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
15 import org.opendaylight.yangtools.yang.model.api.RpcDefinition;
17 final class GlobalDOMRpcRoutingTableEntry extends AbstractDOMRpcRoutingTableEntry {
19 private GlobalDOMRpcRoutingTableEntry(final DOMRpcIdentifier rpcId, final Map<YangInstanceIdentifier,
20 List<DOMRpcImplementation>> impls) {
24 // We do not need the RpcDefinition, but this makes sure we do not
25 // forward something we don't know to be an RPC.
26 GlobalDOMRpcRoutingTableEntry(final RpcDefinition def, final Map<YangInstanceIdentifier,
27 List<DOMRpcImplementation>> impls) {
28 super(DOMRpcIdentifier.create(def.getPath()), impls);
32 protected GlobalDOMRpcRoutingTableEntry newInstance(final Map<YangInstanceIdentifier,
33 List<DOMRpcImplementation>> impls) {
34 return new GlobalDOMRpcRoutingTableEntry(getRpcId(), impls);