blob: b75dbb00c96631a0e4cabc68e7d1b283bd9d6c8c [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,
Andrey Komarov2398d962016-09-26 15:11:23 +030075 LinkWeigher weigher) {
76 return null;
77 }
78
79 @Override
80 public boolean isInfrastructure(Topology topology,
81 ConnectPoint connectPoint) {
tom61359e92014-09-16 15:50:27 -070082 return false;
83 }
84
85 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +030086 public boolean isBroadcastPoint(Topology topology,
87 ConnectPoint connectPoint) {
tom61359e92014-09-16 15:50:27 -070088 return false;
89 }
90
91 @Override
92 public void addListener(TopologyListener listener) {
93 }
94
95 @Override
96 public void removeListener(TopologyListener listener) {
97 }
Thomas Vachuska48e64e42015-09-22 15:32:55 -070098
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -070099 @Override
Andrey Komarov2398d962016-09-26 15:11:23 +0300100 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
101 DeviceId dst) {
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700102 return null;
103 }
104
105 @Override
Thomas Vachuska48e64e42015-09-22 15:32:55 -0700106 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
Andrey Komarov2398d962016-09-26 15:11:23 +0300107 DeviceId dst,
Andrey Komarov2398d962016-09-26 15:11:23 +0300108 LinkWeigher weigher) {
109 return null;
110 }
111
112 @Override
113 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
114 DeviceId dst,
Thomas Vachuska48e64e42015-09-22 15:32:55 -0700115 Map<Link, Object> riskProfile) {
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700116 return null;
117 }
118
119 @Override
Thomas Vachuska48e64e42015-09-22 15:32:55 -0700120 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
Andrey Komarov2398d962016-09-26 15:11:23 +0300121 DeviceId dst,
122 LinkWeigher weigher,
123 Map<Link, Object> riskProfile) {
124 return null;
125 }
126
tom61359e92014-09-16 15:50:27 -0700127}