blob: bbc8fde7db868818c9978760e62db9f46253a087 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2014-present Open Networking Laboratory
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07003 *
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'Connorabafb502014-12-02 22:26:20 -080016package org.onosproject.net.topology;
tom61359e92014-09-16 15:50:27 -070017
Brian O'Connorabafb502014-12-02 22:26:20 -080018import org.onosproject.net.ConnectPoint;
19import org.onosproject.net.DeviceId;
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -070020import org.onosproject.net.DisjointPath;
Brian O'Connorabafb502014-12-02 22:26:20 -080021import org.onosproject.net.Link;
22import org.onosproject.net.Path;
tom61359e92014-09-16 15:50:27 -070023
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -070024import java.util.Map;
tom61359e92014-09-16 15:50:27 -070025import java.util.Set;
Marc De Leenheer552eeb62017-05-15 17:43:27 -070026import java.util.stream.Stream;
tom61359e92014-09-16 15:50:27 -070027
28/**
29 * Test adapter for topology service.
30 */
31public class TopologyServiceAdapter implements TopologyService {
32 @Override
33 public Topology currentTopology() {
34 return null;
35 }
36
37 @Override
38 public boolean isLatest(Topology topology) {
39 return false;
40 }
41
42 @Override
43 public TopologyGraph getGraph(Topology topology) {
44 return null;
45 }
46
47 @Override
48 public Set<TopologyCluster> getClusters(Topology topology) {
49 return null;
50 }
51
52 @Override
53 public TopologyCluster getCluster(Topology topology, ClusterId clusterId) {
54 return null;
55 }
56
57 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +030058 public Set<DeviceId> getClusterDevices(Topology topology,
59 TopologyCluster cluster) {
tom61359e92014-09-16 15:50:27 -070060 return null;
61 }
62
63 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +030064 public Set<Link> getClusterLinks(Topology topology,
65 TopologyCluster cluster) {
tom61359e92014-09-16 15:50:27 -070066 return null;
67 }
68
69 @Override
70 public Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst) {
71 return null;
72 }
73
74 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +030075 public Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst,
76 LinkWeight weight) {
tom61359e92014-09-16 15:50:27 -070077 return null;
78 }
79
80 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +030081 public Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst,
82 LinkWeigher weigher) {
83 return null;
84 }
85
86 @Override
Marc De Leenheer552eeb62017-05-15 17:43:27 -070087 public Set<Path> getKShortestPaths(Topology topology, DeviceId src, DeviceId dst,
88 LinkWeigher weigher, int maxPaths) {
89 return null;
90 }
91
92 @Override
93 public Stream<Path> getKShortestPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher) {
94 return null;
95 }
96
97 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +030098 public boolean isInfrastructure(Topology topology,
99 ConnectPoint connectPoint) {
tom61359e92014-09-16 15:50:27 -0700100 return false;
101 }
102
103 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +0300104 public boolean isBroadcastPoint(Topology topology,
105 ConnectPoint connectPoint) {
tom61359e92014-09-16 15:50:27 -0700106 return false;
107 }
108
109 @Override
110 public void addListener(TopologyListener listener) {
111 }
112
113 @Override
114 public void removeListener(TopologyListener listener) {
115 }
Thomas Vachuska48e64e42015-09-22 15:32:55 -0700116
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700117 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +0300118 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
119 DeviceId dst) {
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700120 return null;
121 }
122
123 @Override
Thomas Vachuska48e64e42015-09-22 15:32:55 -0700124 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
Andrey Komarov2398d962016-09-26 15:11:23 +0300125 DeviceId dst,
126 LinkWeight weight) {
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700127 return null;
128 }
129
130 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +0300131 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
132 DeviceId dst,
133 LinkWeigher weigher) {
134 return null;
135 }
136
137 @Override
138 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
139 DeviceId dst,
Thomas Vachuska48e64e42015-09-22 15:32:55 -0700140 Map<Link, Object> riskProfile) {
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700141 return null;
142 }
143
144 @Override
Thomas Vachuska48e64e42015-09-22 15:32:55 -0700145 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
146 DeviceId dst, LinkWeight weight,
147 Map<Link, Object> riskProfile) {
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700148 return null;
149 }
tom61359e92014-09-16 15:50:27 -0700150
Andrey Komarov2398d962016-09-26 15:11:23 +0300151 @Override
152 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
153 DeviceId dst,
154 LinkWeigher weigher,
155 Map<Link, Object> riskProfile) {
156 return null;
157 }
158
tom61359e92014-09-16 15:50:27 -0700159}