Andrea Campanella | 58454b9 | 2016-04-01 15:19:00 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Laboratory |
Andrea Campanella | 58454b9 | 2016-04-01 15:19:00 -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 | |
| 17 | package org.onosproject.net.device; |
| 18 | |
| 19 | import org.onosproject.net.Device; |
| 20 | import org.onosproject.net.DeviceId; |
| 21 | import org.onosproject.net.Port; |
| 22 | import org.onosproject.net.PortNumber; |
| 23 | import org.onosproject.net.provider.ProviderId; |
| 24 | |
| 25 | import java.util.Collection; |
| 26 | import java.util.List; |
| 27 | |
| 28 | /** |
| 29 | * Test adapter for the DeviceStore API. |
| 30 | */ |
| 31 | public class DeviceStoreAdapter implements DeviceStore { |
| 32 | @Override |
| 33 | public int getDeviceCount() { |
| 34 | return 0; |
| 35 | } |
| 36 | |
| 37 | @Override |
| 38 | public Iterable<Device> getDevices() { |
| 39 | return null; |
| 40 | } |
| 41 | |
| 42 | @Override |
| 43 | public Iterable<Device> getAvailableDevices() { |
| 44 | return null; |
| 45 | } |
| 46 | |
| 47 | @Override |
| 48 | public Device getDevice(DeviceId deviceId) { |
| 49 | return null; |
| 50 | } |
| 51 | |
| 52 | @Override |
| 53 | public DeviceEvent createOrUpdateDevice(ProviderId providerId, DeviceId deviceId, |
| 54 | DeviceDescription deviceDescription) { |
| 55 | return null; |
| 56 | } |
| 57 | |
| 58 | @Override |
| 59 | public DeviceEvent markOffline(DeviceId deviceId) { |
| 60 | return null; |
| 61 | } |
| 62 | |
| 63 | @Override |
| 64 | public List<DeviceEvent> updatePorts(ProviderId providerId, DeviceId deviceId, |
| 65 | List<PortDescription> portDescriptions) { |
| 66 | return null; |
| 67 | } |
| 68 | |
| 69 | @Override |
| 70 | public DeviceEvent updatePortStatus(ProviderId providerId, DeviceId deviceId, |
| 71 | PortDescription portDescription) { |
| 72 | return null; |
| 73 | } |
| 74 | |
| 75 | @Override |
| 76 | public List<Port> getPorts(DeviceId deviceId) { |
| 77 | return null; |
| 78 | } |
| 79 | |
| 80 | @Override |
| 81 | public DeviceEvent updatePortStatistics(ProviderId providerId, DeviceId deviceId, |
| 82 | Collection<PortStatistics> portStats) { |
| 83 | return null; |
| 84 | } |
| 85 | |
| 86 | @Override |
| 87 | public List<PortStatistics> getPortStatistics(DeviceId deviceId) { |
| 88 | return null; |
| 89 | } |
| 90 | |
| 91 | @Override |
| 92 | public List<PortStatistics> getPortDeltaStatistics(DeviceId deviceId) { |
| 93 | return null; |
| 94 | } |
| 95 | |
| 96 | @Override |
| 97 | public Port getPort(DeviceId deviceId, PortNumber portNumber) { |
| 98 | return null; |
| 99 | } |
| 100 | |
| 101 | @Override |
| 102 | public boolean isAvailable(DeviceId deviceId) { |
| 103 | return false; |
| 104 | } |
| 105 | |
| 106 | @Override |
| 107 | public DeviceEvent removeDevice(DeviceId deviceId) { |
| 108 | return null; |
| 109 | } |
| 110 | |
| 111 | @Override |
| 112 | public void setDelegate(DeviceStoreDelegate delegate) { |
| 113 | |
| 114 | } |
| 115 | |
| 116 | @Override |
| 117 | public void unsetDelegate(DeviceStoreDelegate delegate) { |
| 118 | |
| 119 | } |
| 120 | |
| 121 | @Override |
| 122 | public boolean hasDelegate() { |
| 123 | return false; |
| 124 | } |
| 125 | } |