blob: f86bb3b6685db9640aa564514372f61fbac5e687 [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;
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
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 Vachuska48e64e42015-09-22 15:32:55 -070093
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -070094 @Override
95 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst) {
96 return null;
97 }
98
99 @Override
Thomas Vachuska48e64e42015-09-22 15:32:55 -0700100 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src,
101 DeviceId dst, LinkWeight weight) {
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, DeviceId dst,
107 Map<Link, Object> riskProfile) {
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,
113 DeviceId dst, LinkWeight weight,
114 Map<Link, Object> riskProfile) {
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -0700115 return null;
116 }
tom61359e92014-09-16 15:50:27 -0700117
118}