Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Open Networking Laboratory |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 16 | package org.onosproject.net.topology; |
tom | 61359e9 | 2014-09-16 15:50:27 -0700 | [diff] [blame] | 17 | |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 18 | import org.onosproject.net.ConnectPoint; |
| 19 | import org.onosproject.net.DeviceId; |
Nikhil Cheerla | 2ec191f | 2015-07-09 12:34:54 -0700 | [diff] [blame] | 20 | import org.onosproject.net.DisjointPath; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 21 | import org.onosproject.net.Link; |
| 22 | import org.onosproject.net.Path; |
tom | 61359e9 | 2014-09-16 15:50:27 -0700 | [diff] [blame] | 23 | |
Nikhil Cheerla | 2ec191f | 2015-07-09 12:34:54 -0700 | [diff] [blame] | 24 | import java.util.Map; |
tom | 61359e9 | 2014-09-16 15:50:27 -0700 | [diff] [blame] | 25 | import java.util.Set; |
| 26 | |
| 27 | /** |
| 28 | * Test adapter for topology service. |
| 29 | */ |
| 30 | public class TopologyServiceAdapter implements TopologyService { |
| 31 | @Override |
| 32 | public Topology currentTopology() { |
| 33 | return null; |
| 34 | } |
| 35 | |
| 36 | @Override |
| 37 | public boolean isLatest(Topology topology) { |
| 38 | return false; |
| 39 | } |
| 40 | |
| 41 | @Override |
| 42 | public TopologyGraph getGraph(Topology topology) { |
| 43 | return null; |
| 44 | } |
| 45 | |
| 46 | @Override |
| 47 | public Set<TopologyCluster> getClusters(Topology topology) { |
| 48 | return null; |
| 49 | } |
| 50 | |
| 51 | @Override |
| 52 | public TopologyCluster getCluster(Topology topology, ClusterId clusterId) { |
| 53 | return null; |
| 54 | } |
| 55 | |
| 56 | @Override |
| 57 | public Set<DeviceId> getClusterDevices(Topology topology, TopologyCluster cluster) { |
| 58 | return null; |
| 59 | } |
| 60 | |
| 61 | @Override |
| 62 | public Set<Link> getClusterLinks(Topology topology, TopologyCluster cluster) { |
| 63 | return null; |
| 64 | } |
| 65 | |
| 66 | @Override |
| 67 | public Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst) { |
| 68 | return null; |
| 69 | } |
| 70 | |
| 71 | @Override |
| 72 | public Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeight weight) { |
| 73 | return null; |
| 74 | } |
| 75 | |
| 76 | @Override |
| 77 | public boolean isInfrastructure(Topology topology, ConnectPoint connectPoint) { |
| 78 | return false; |
| 79 | } |
| 80 | |
| 81 | @Override |
| 82 | public boolean isBroadcastPoint(Topology topology, ConnectPoint connectPoint) { |
| 83 | return false; |
| 84 | } |
| 85 | |
| 86 | @Override |
| 87 | public void addListener(TopologyListener listener) { |
| 88 | } |
| 89 | |
| 90 | @Override |
| 91 | public void removeListener(TopologyListener listener) { |
| 92 | } |
Thomas Vachuska | 48e64e4 | 2015-09-22 15:32:55 -0700 | [diff] [blame] | 93 | |
Nikhil Cheerla | 2ec191f | 2015-07-09 12:34:54 -0700 | [diff] [blame] | 94 | @Override |
| 95 | public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst) { |
| 96 | return null; |
| 97 | } |
| 98 | |
| 99 | @Override |
Thomas Vachuska | 48e64e4 | 2015-09-22 15:32:55 -0700 | [diff] [blame] | 100 | public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, |
| 101 | DeviceId dst, LinkWeight weight) { |
Nikhil Cheerla | 2ec191f | 2015-07-09 12:34:54 -0700 | [diff] [blame] | 102 | return null; |
| 103 | } |
| 104 | |
| 105 | @Override |
Thomas Vachuska | 48e64e4 | 2015-09-22 15:32:55 -0700 | [diff] [blame] | 106 | public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst, |
| 107 | Map<Link, Object> riskProfile) { |
Nikhil Cheerla | 2ec191f | 2015-07-09 12:34:54 -0700 | [diff] [blame] | 108 | return null; |
| 109 | } |
| 110 | |
| 111 | @Override |
Thomas Vachuska | 48e64e4 | 2015-09-22 15:32:55 -0700 | [diff] [blame] | 112 | public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, |
| 113 | DeviceId dst, LinkWeight weight, |
| 114 | Map<Link, Object> riskProfile) { |
Nikhil Cheerla | 2ec191f | 2015-07-09 12:34:54 -0700 | [diff] [blame] | 115 | return null; |
| 116 | } |
tom | 61359e9 | 2014-09-16 15:50:27 -0700 | [diff] [blame] | 117 | |
| 118 | } |