X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fzeromq-routingtable%2Fimplementation%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fconnector%2Fremoterpc%2Fapi%2FRoutingTable.java;h=6ec4c2ce01f7ccb675873890a3ff80bfa6102963;hp=97d2a6d02a40a054135b7bf390279fb669208f87;hb=55b51daea09496c07f95f4ed0f3c035a65c090e7;hpb=575915efe6a72afb42762ff3213614fcc2379c8b 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 index 97d2a6d02a..6ec4c2ce01 100644 --- 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 @@ -19,10 +19,12 @@ public interface RoutingTable { * * @param routeId route identifier * @param route network address + * @throws RoutingTableException for any logical exception + * @throws SystemException */ - public void addRoute(I routeId, R route) throws SystemException, RoutingTableException; + 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. @@ -31,6 +33,7 @@ public interface RoutingTable { * @param routeId route identifier * @param route network address * @throws DuplicateRouteException + * @throws RoutingTableException */ public void addGlobalRoute(I routeId, R route) throws RoutingTableException, SystemException; @@ -50,8 +53,10 @@ public interface RoutingTable { * Remove the route. * This method would be used when registering a global service. * @param routeId + * @throws RoutingTableException + * @throws SystemException */ - public void removeGlobalRoute(I routeId); + public void removeGlobalRoute(I routeId) throws RoutingTableException, SystemException; /** * Returns a set of network addresses associated with this route @@ -69,6 +74,13 @@ public interface RoutingTable { */ 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 {