X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fzeromq-routingtable%2Fimplementation%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fconnector%2Fremoterpc%2Fapi%2FRoutingTable.java;fp=opendaylight%2Fmd-sal%2Fzeromq-routingtable%2Fimplementation%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fconnector%2Fremoterpc%2Fapi%2FRoutingTable.java;h=0000000000000000000000000000000000000000;hb=55702e8f81f83de95367774cd2fa4f4f1b452469;hp=6ec4c2ce01f7ccb675873890a3ff80bfa6102963;hpb=986f7091e577ac69cbc180a9f981760b78dd18e6;p=controller.git diff --git a/opendaylight/md-sal/zeromq-routingtable/implementation/src/main/java/org/opendaylight/controller/sal/connector/remoterpc/api/RoutingTable.java b/opendaylight/md-sal/zeromq-routingtable/implementation/src/main/java/org/opendaylight/controller/sal/connector/remoterpc/api/RoutingTable.java deleted file mode 100644 index 6ec4c2ce01..0000000000 --- a/opendaylight/md-sal/zeromq-routingtable/implementation/src/main/java/org/opendaylight/controller/sal/connector/remoterpc/api/RoutingTable.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.connector.remoterpc.api; - -import java.util.Set; - -public interface RoutingTable { - - - - /** - * Adds a network address for the route. If address for route - * exists, appends the address to the list - * - * @param routeId route identifier - * @param route network address - * @throws RoutingTableException for any logical exception - * @throws SystemException - */ - public void addRoute(I routeId, R route) throws RoutingTableException,SystemException; - - /** - * Adds a network address for the route. If the route already exists, - * it throws DuplicateRouteException. - * This method would be used when registering a global service. - * - * - * @param routeId route identifier - * @param route network address - * @throws DuplicateRouteException - * @throws RoutingTableException - */ - public void addGlobalRoute(I routeId, R route) throws RoutingTableException, SystemException; - - - - - /** - * Removes the network address for the route from routing table. If only - * one network address existed, remove the route as well. - * @param routeId - * @param route - */ - public void removeRoute(I routeId, R route); - - - /** - * Remove the route. - * This method would be used when registering a global service. - * @param routeId - * @throws RoutingTableException - * @throws SystemException - */ - public void removeGlobalRoute(I routeId) throws RoutingTableException, SystemException; - - /** - * Returns a set of network addresses associated with this route - * @param routeId - * @return - */ - public Set getRoutes(I routeId); - - /** - * Returns only one address from the list of network addresses - * associated with the route. The algorithm to determine that - * one address is upto the implementer - * @param routeId - * @return - */ - public R getARoute(I routeId); - - /** - * - * This will be removed after listeners - * have made change on their end to use whiteboard pattern - * @deprecated - */ - - public void registerRouteChangeListener(RouteChangeListener listener); - - public class DuplicateRouteException extends RoutingTableException { - public DuplicateRouteException(String message) { - super(message); - } - - } - -}