1 package org.opendaylight.controller.sal.connector.remoterpc;
3 import org.opendaylight.controller.sal.connector.remoterpc.api.RouteChangeListener;
4 import org.opendaylight.controller.sal.connector.remoterpc.api.RoutingTable;
5 import org.opendaylight.controller.sal.connector.remoterpc.api.RoutingTableException;
6 import org.opendaylight.controller.sal.connector.remoterpc.api.SystemException;
8 import java.util.Collections;
9 import java.util.HashSet;
14 * Mock implementation of routing table
16 public class MockRoutingTable<K, V> implements RoutingTable {
20 public void addRoute(Object o, Object o2) throws RoutingTableException, SystemException {
25 public void addGlobalRoute(Object o, Object o2) throws RoutingTableException, SystemException {
30 public void removeRoute(Object o, Object o2) {
35 public void removeGlobalRoute(Object o) throws RoutingTableException, SystemException {
40 public Set getRoutes(Object o) {
41 Set<String> routes = new HashSet<String>();
42 routes.add("localhost:5554");
47 public Set<Map.Entry> getAllRoutes() {
48 return Collections.emptySet();
52 public Object getARoute(Object o) {
57 public void registerRouteChangeListener(RouteChangeListener routeChangeListener) {