blob: a5a2a90686e14ce043c0e31e200f016ccc1831d7 [file] [log] [blame]
Andrea Campanella58454b92016-04-01 15:19:00 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Andrea Campanella58454b92016-04-01 15:19:00 -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 */
16
17package org.onosproject.net.device;
18
19import org.onosproject.net.Device;
20import org.onosproject.net.DeviceId;
21import org.onosproject.net.Port;
22import org.onosproject.net.PortNumber;
23import org.onosproject.net.provider.ProviderId;
24
25import java.util.Collection;
26import java.util.List;
Yuta HIGUCHI6eb00cc2016-06-10 11:55:12 -070027import java.util.stream.Stream;
Andrea Campanella58454b92016-04-01 15:19:00 -070028
29/**
30 * Test adapter for the DeviceStore API.
31 */
32public class DeviceStoreAdapter implements DeviceStore {
33 @Override
34 public int getDeviceCount() {
35 return 0;
36 }
37
38 @Override
mskala0d0c6832017-07-12 11:21:23 +020039 public int getAvailableDeviceCount() {
40 return 0;
41 }
42
43 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -070044 public Iterable<Device> getDevices() {
45 return null;
46 }
47
48 @Override
49 public Iterable<Device> getAvailableDevices() {
50 return null;
51 }
52
53 @Override
54 public Device getDevice(DeviceId deviceId) {
55 return null;
56 }
57
58 @Override
59 public DeviceEvent createOrUpdateDevice(ProviderId providerId, DeviceId deviceId,
60 DeviceDescription deviceDescription) {
61 return null;
62 }
63
64 @Override
helenyrwufd296b62016-06-22 17:43:02 -070065 public boolean markOnline(DeviceId deviceId) {
66 return false;
67 }
68
69 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -070070 public DeviceEvent markOffline(DeviceId deviceId) {
71 return null;
72 }
73
74 @Override
75 public List<DeviceEvent> updatePorts(ProviderId providerId, DeviceId deviceId,
76 List<PortDescription> portDescriptions) {
77 return null;
78 }
79
80 @Override
81 public DeviceEvent updatePortStatus(ProviderId providerId, DeviceId deviceId,
82 PortDescription portDescription) {
83 return null;
84 }
85
86 @Override
87 public List<Port> getPorts(DeviceId deviceId) {
88 return null;
89 }
90
91 @Override
Yuta HIGUCHI6eb00cc2016-06-10 11:55:12 -070092 public Stream<PortDescription> getPortDescriptions(ProviderId providerId,
93 DeviceId deviceId) {
94 return Stream.empty();
95 }
96
97 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -070098 public DeviceEvent updatePortStatistics(ProviderId providerId, DeviceId deviceId,
99 Collection<PortStatistics> portStats) {
100 return null;
101 }
102
103 @Override
104 public List<PortStatistics> getPortStatistics(DeviceId deviceId) {
105 return null;
106 }
107
108 @Override
Viswanath KSP22774cd2016-08-20 20:06:30 +0530109 public PortStatistics getStatisticsForPort(DeviceId deviceId, PortNumber portNumber) {
110 return null;
111 }
112
113 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -0700114 public List<PortStatistics> getPortDeltaStatistics(DeviceId deviceId) {
115 return null;
116 }
117
118 @Override
Viswanath KSP22774cd2016-08-20 20:06:30 +0530119 public PortStatistics getDeltaStatisticsForPort(DeviceId deviceId, PortNumber portNumber) {
120 return null;
121 }
122
123 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -0700124 public Port getPort(DeviceId deviceId, PortNumber portNumber) {
125 return null;
126 }
127
128 @Override
Yuta HIGUCHI6eb00cc2016-06-10 11:55:12 -0700129 public PortDescription getPortDescription(ProviderId providerId,
130 DeviceId deviceId,
131 PortNumber portNumber) {
132 return null;
133 }
134
135 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -0700136 public boolean isAvailable(DeviceId deviceId) {
137 return false;
138 }
139
140 @Override
141 public DeviceEvent removeDevice(DeviceId deviceId) {
142 return null;
143 }
144
145 @Override
146 public void setDelegate(DeviceStoreDelegate delegate) {
147
148 }
149
150 @Override
151 public void unsetDelegate(DeviceStoreDelegate delegate) {
152
153 }
154
155 @Override
156 public boolean hasDelegate() {
157 return false;
158 }
159}