2 * Copyright (c) 2014 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.connector.remoterpc;
10 import org.opendaylight.controller.sal.connector.remoterpc.api.RouteChangeListener;
11 import org.opendaylight.controller.sal.connector.remoterpc.api.RoutingTable;
12 import org.opendaylight.controller.sal.connector.remoterpc.api.RoutingTableException;
13 import org.opendaylight.controller.sal.connector.remoterpc.api.SystemException;
15 import java.util.Collections;
16 import java.util.HashSet;
21 * Mock implementation of routing table
23 public class MockRoutingTable<K, V> implements RoutingTable {
27 public void addRoute(Object o, Object o2) throws RoutingTableException, SystemException {
32 public void addGlobalRoute(Object o, Object o2) throws RoutingTableException, SystemException {
37 public void removeRoute(Object o, Object o2) {
42 public void removeGlobalRoute(Object o) throws RoutingTableException, SystemException {
47 public Set getRoutes(Object o) {
48 Set<String> routes = new HashSet<String>();
49 routes.add("localhost:5554");
54 public Set<Map.Entry> getAllRoutes() {
55 return Collections.emptySet();
59 public Object getARoute(Object o) {
64 public void registerRouteChangeListener(RouteChangeListener routeChangeListener) {