blob: b5b3056c0b23ff599b5840a5674343ec5f207090 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
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'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 }
Nikhil Cheerla2ec191f2015-07-09 12:34:54 -070093 @Override
94 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst) {
95 return null;
96 }
97
98 @Override
99 public Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeight weight) {
100 return null;
101 }
102
103 @Override
104 public Set<DisjointPath> getSRLGDisjointPaths(Topology topology, DeviceId src, DeviceId dst,
105 Map<Link, Object> riskProfile) {
106 return null;
107 }
108
109 @Override
110 public Set<DisjointPath> getSRLGDisjointPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeight weight,
111 Map<Link, Object> riskProfile) {
112 return null;
113 }
tom61359e92014-09-16 15:50:27 -0700114
115}