X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Fspi%2FRpcRoutingTable.java;h=4d9d51b13300664a109d87eae0d8dcf9ff13cdfa;hb=a251833f27fd00040904e2df316cd707c8129d1e;hp=f2d38256c9cf61687fd269abf52ae8188745b7d2;hpb=3e5a15bd17299cc88ea253514db40661e11f5bb7;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/spi/RpcRoutingTable.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/spi/RpcRoutingTable.java index f2d38256c9..4d9d51b133 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/spi/RpcRoutingTable.java +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/spi/RpcRoutingTable.java @@ -1,38 +1,52 @@ +/* + * Copyright (c) 2013 Cisco 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.binding.spi; import java.util.Map; +import org.opendaylight.controller.md.sal.common.api.routing.MutableRoutingTable; import org.opendaylight.yangtools.yang.binding.BaseIdentity; import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; import org.opendaylight.yangtools.yang.binding.RpcService; -public interface RpcRoutingTable { +public interface RpcRoutingTable extends + MutableRoutingTable, InstanceIdentifier, S> { + + Class getIdentifier(); - Class getContextIdentifier(); - /** - * Updates route for particular path to specified instance of {@link RpcService}. + * Updates route for particular path to specified instance of + * {@link RpcService}. * - * @param path Path for which RpcService routing is to be updated - * @param service Instance of RpcService which is responsible for processing Rpc Requests. + * @param path + * Path for which RpcService routing is to be updated + * @param service + * Instance of RpcService which is responsible for processing Rpc + * Requests. */ - void updateRoute(InstanceIdentifier path,S service); - + void updateRoute(InstanceIdentifier path, S service); + /** * Deletes a route for particular path * - * @param path Path for which + * @param path + * Path for which */ - void deleteRoute(InstanceIdentifier path); - + void removeRoute(InstanceIdentifier path); + /** * */ - S getService(InstanceIdentifier nodeInstance); - + S getRoute(InstanceIdentifier nodeInstance); + /** * * @return */ - Map getRoutes(); + Map, S> getRoutes(); }