blob: a3266fbd435620d273c2be6f3467669008db6e05 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2014-present Open Networking Foundation
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;
26
27/**
28 * Test adapter for topology service.
29 */
30public 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
Andrey Komarov2398d962016-09-26 15:11:23 +030057 public Set<DeviceId> getClusterDevices(Topology topology,
58 TopologyCluster cluster) {
tom61359e92014-09-16 15:50:27 -070059 return null;
60 }
61
62 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +030063 public Set<Link> getClusterLinks(Topology topology,
64 TopologyCluster cluster) {
tom61359e92014-09-16 15:50:27 -070065 return null;
66 }
67
68 @Override
69 public Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst) {
70 return null;
71 }
72
73 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +030074 public Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst,
75 LinkWeight weight) {
tom61359e92014-09-16 15:50:27 -070076 return null;
77 }
78
79 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +030080 public Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst,
81 LinkWeigher weigher) {
82 return null;
83 }
84
85 @Override
86 public boolean isInfrastructure(Topology topology,
87 ConnectPoint connectPoint) {
tom61359e92014-09-16 15:50:27 -070088 return false;
89 }
90
91 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +030092 public boolean isBroadcastPoint(Topology topology,
93 ConnectPoint connectPoint) {
tom61359e92014-09-16 15:50:27 -070094 return false;
95 }
96
97 @Override
98 public void addListener(TopologyListener listener) {
99 }
100
101 @Override
102 public void removeListener(TopologyListener listener) {
103 }
Thomas Vachuska48e64e42015-09-22 15:32:55 -0700104
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700105 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +0300106 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
107 DeviceId dst) {
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700108 return null;
109 }
110
111 @Override
Thomas Vachuska48e64e42015-09-22 15:32:55 -0700112 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
Andrey Komarov2398d962016-09-26 15:11:23 +0300113 DeviceId dst,
114 LinkWeight weight) {
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700115 return null;
116 }
117
118 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +0300119 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
120 DeviceId dst,
121 LinkWeigher weigher) {
122 return null;
123 }
124
125 @Override
126 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
127 DeviceId dst,
Thomas Vachuska48e64e42015-09-22 15:32:55 -0700128 Map<Link, Object> riskProfile) {
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700129 return null;
130 }
131
132 @Override
Thomas Vachuska48e64e42015-09-22 15:32:55 -0700133 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
134 DeviceId dst, LinkWeight weight,
135 Map<Link, Object> riskProfile) {
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700136 return null;
137 }
tom61359e92014-09-16 15:50:27 -0700138
Andrey Komarov2398d962016-09-26 15:11:23 +0300139 @Override
140 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
141 DeviceId dst,
142 LinkWeigher weigher,
143 Map<Link, Object> riskProfile) {
144 return null;
145 }
146
tom61359e92014-09-16 15:50:27 -0700147}