2 * Copyright (c) 2013 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.controller.sal.binding.api.rpc;
12 import org.opendaylight.controller.md.sal.common.api.routing.MutableRoutingTable;
13 import org.opendaylight.yangtools.yang.binding.BaseIdentity;
14 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
15 import org.opendaylight.yangtools.yang.binding.RpcService;
17 public interface RpcRoutingTable<C extends BaseIdentity, S extends RpcService> extends
18 MutableRoutingTable<Class<? extends C>, InstanceIdentifier<?>, S> {
20 Class<C> getIdentifier();
23 * Updates route for particular path to specified instance of
27 * Path for which RpcService routing is to be updated
29 * Instance of RpcService which is responsible for processing Rpc
32 void updateRoute(InstanceIdentifier<?> path, S service);
35 * Deletes a route for particular path
40 void removeRoute(InstanceIdentifier<?> path);
45 S getRoute(InstanceIdentifier<?> nodeInstance);
51 Map<InstanceIdentifier<?>, S> getRoutes();