Cosmetics: check in pom.xml files as _sort_pom_ wants them to be
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / implementation / src / test / java / org / opendaylight / controller / sal / connector / remoterpc / MockRoutingTable.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.sal.connector.remoterpc;
9
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;
14
15 import java.util.Collections;
16 import java.util.HashSet;
17 import java.util.Map;
18 import java.util.Set;
19
20 /**
21  * Mock implementation of routing table
22  */
23 public class MockRoutingTable<K, V> implements RoutingTable {
24
25
26   @Override
27   public void addRoute(Object o, Object o2) throws RoutingTableException, SystemException {
28
29   }
30
31   @Override
32   public void addGlobalRoute(Object o, Object o2) throws RoutingTableException, SystemException {
33
34   }
35
36   @Override
37   public void removeRoute(Object o, Object o2) {
38
39   }
40
41   @Override
42   public void addRoutes(Set set, Object o) throws RoutingTableException, SystemException {
43     //To change body of implemented methods use File | Settings | File Templates.
44   }
45
46   @Override
47   public void removeRoutes(Set set, Object o) throws RoutingTableException, SystemException {
48     //To change body of implemented methods use File | Settings | File Templates.
49   }
50
51   @Override
52   public void removeGlobalRoute(Object o) throws RoutingTableException, SystemException {
53
54   }
55
56   @Override
57   public Object getGlobalRoute(Object o) throws RoutingTableException, SystemException {
58     return null;  //To change body of implemented methods use File | Settings | File Templates.
59   }
60
61   @Override
62   public Set getRoutes(Object o) {
63     Set<String> routes = new HashSet<String>();
64     routes.add("localhost:5554");
65     return routes;
66   }
67
68   @Override
69   public Object getLastAddedRoute(Object o) {
70     return null;  //To change body of implemented methods use File | Settings | File Templates.
71   }
72
73 //  @Override
74 //  public Set<Map.Entry> getAllRoutes() {
75 //    return Collections.emptySet();
76 //  }
77
78 //  @Override
79 //  public Object getARoute(Object o) {
80 //    return null;
81 //  }
82 }