blob: 796e6d64d9add0fb076d5b8a482b6d3bff478260 [file] [log] [blame]
Yi Tseng7a38f9a2017-06-09 14:36:40 -07001/*
2 * Copyright 2017-present 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 */
16package org.onosproject.net.host;
17
18import org.onlab.packet.IpAddress;
19import org.onlab.packet.MacAddress;
20import org.onlab.packet.VlanId;
21import org.onosproject.net.ConnectPoint;
22import org.onosproject.net.DeviceId;
23import org.onosproject.net.Host;
24import org.onosproject.net.HostId;
25import org.onosproject.net.HostLocation;
26import org.onosproject.net.provider.ProviderId;
27
28import java.util.Set;
29
30/**
31 * Test adapter for host store.
32 */
33public class HostStoreAdapter implements HostStore {
34 @Override
35 public void setDelegate(HostStoreDelegate delegate) {
36
37 }
38
39 @Override
40 public void unsetDelegate(HostStoreDelegate delegate) {
41
42 }
43
44 @Override
45 public boolean hasDelegate() {
46 return false;
47 }
48
49 @Override
50 public HostEvent createOrUpdateHost(ProviderId providerId,
51 HostId hostId,
52 HostDescription hostDescription,
53 boolean replaceIps) {
54 return null;
55 }
56
57 @Override
58 public HostEvent removeHost(HostId hostId) {
59 return null;
60 }
61
62 @Override
63 public HostEvent removeIp(HostId hostId, IpAddress ipAddress) {
64 return null;
65 }
66
67 @Override
68 public void removeLocation(HostId hostId, HostLocation location) {
69
70 }
71
72 @Override
73 public int getHostCount() {
74 return 0;
75 }
76
77 @Override
78 public Iterable<Host> getHosts() {
79 return null;
80 }
81
82 @Override
83 public Host getHost(HostId hostId) {
84 return null;
85 }
86
87 @Override
88 public Set<Host> getHosts(VlanId vlanId) {
89 return null;
90 }
91
92 @Override
93 public Set<Host> getHosts(MacAddress mac) {
94 return null;
95 }
96
97 @Override
98 public Set<Host> getHosts(IpAddress ip) {
99 return null;
100 }
101
102 @Override
103 public Set<Host> getConnectedHosts(ConnectPoint connectPoint) {
104 return null;
105 }
106
107 @Override
108 public Set<Host> getConnectedHosts(DeviceId deviceId) {
109 return null;
110 }
111}