Enhancements to remote rpc server. Using zmq router-dealer bridge to make the server...
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / implementation / src / test / java / org / opendaylight / controller / sal / connector / remoterpc / MockRoutingTable.java
1 package org.opendaylight.controller.sal.connector.remoterpc;
2
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;
7
8 import java.util.Collections;
9 import java.util.HashSet;
10 import java.util.Map;
11 import java.util.Set;
12
13 /**
14  * Mock implementation of routing table
15  */
16 public class MockRoutingTable<K, V> implements RoutingTable {
17
18
19   @Override
20   public void addRoute(Object o, Object o2) throws RoutingTableException, SystemException {
21
22   }
23
24   @Override
25   public void addGlobalRoute(Object o, Object o2) throws RoutingTableException, SystemException {
26
27   }
28
29   @Override
30   public void removeRoute(Object o, Object o2) {
31
32   }
33
34   @Override
35   public void removeGlobalRoute(Object o) throws RoutingTableException, SystemException {
36
37   }
38
39   @Override
40   public Set getRoutes(Object o) {
41     Set<String> routes = new HashSet<String>();
42     routes.add("localhost:5554");
43     return routes;
44   }
45
46   @Override
47   public Set<Map.Entry> getAllRoutes() {
48     return Collections.emptySet();
49   }
50
51   @Override
52   public Object getARoute(Object o) {
53     return null;
54   }
55
56   @Override
57   public void registerRouteChangeListener(RouteChangeListener routeChangeListener) {
58
59   }
60 }