Yi Tseng | 7a38f9a | 2017-06-09 14:36:40 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2017-present Open Networking Foundation |
Yi Tseng | 7a38f9a | 2017-06-09 14:36:40 -0700 | [diff] [blame] | 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 | */ |
| 16 | package org.onosproject.net.host; |
| 17 | |
| 18 | import org.onlab.packet.IpAddress; |
| 19 | import org.onlab.packet.MacAddress; |
| 20 | import org.onlab.packet.VlanId; |
| 21 | import org.onosproject.net.ConnectPoint; |
| 22 | import org.onosproject.net.DeviceId; |
| 23 | import org.onosproject.net.Host; |
| 24 | import org.onosproject.net.HostId; |
| 25 | import org.onosproject.net.HostLocation; |
| 26 | import org.onosproject.net.provider.ProviderId; |
| 27 | |
| 28 | import java.util.Set; |
| 29 | |
| 30 | /** |
| 31 | * Test adapter for host store. |
| 32 | */ |
| 33 | public 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 |
Charles Chan | 4793375 | 2017-11-30 15:37:50 -0800 | [diff] [blame] | 68 | public void appendLocation(HostId hostId, HostLocation location) { |
| 69 | |
| 70 | } |
| 71 | |
| 72 | @Override |
Yi Tseng | 7a38f9a | 2017-06-09 14:36:40 -0700 | [diff] [blame] | 73 | public void removeLocation(HostId hostId, HostLocation location) { |
| 74 | |
| 75 | } |
| 76 | |
| 77 | @Override |
| 78 | public int getHostCount() { |
| 79 | return 0; |
| 80 | } |
| 81 | |
| 82 | @Override |
| 83 | public Iterable<Host> getHosts() { |
| 84 | return null; |
| 85 | } |
| 86 | |
| 87 | @Override |
| 88 | public Host getHost(HostId hostId) { |
| 89 | return null; |
| 90 | } |
| 91 | |
| 92 | @Override |
| 93 | public Set<Host> getHosts(VlanId vlanId) { |
| 94 | return null; |
| 95 | } |
| 96 | |
| 97 | @Override |
| 98 | public Set<Host> getHosts(MacAddress mac) { |
| 99 | return null; |
| 100 | } |
| 101 | |
| 102 | @Override |
| 103 | public Set<Host> getHosts(IpAddress ip) { |
| 104 | return null; |
| 105 | } |
| 106 | |
| 107 | @Override |
| 108 | public Set<Host> getConnectedHosts(ConnectPoint connectPoint) { |
| 109 | return null; |
| 110 | } |
| 111 | |
| 112 | @Override |
| 113 | public Set<Host> getConnectedHosts(DeviceId deviceId) { |
| 114 | return null; |
| 115 | } |
| 116 | } |