blob: d13da6a349d6ebc1acf149d8577768af03ae5aa1 [file] [log] [blame]
Andrea Campanella58454b92016-04-01 15:19:00 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
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
39 public Iterable<Device> getDevices() {
40 return null;
41 }
42
43 @Override
44 public Iterable<Device> getAvailableDevices() {
45 return null;
46 }
47
48 @Override
49 public Device getDevice(DeviceId deviceId) {
50 return null;
51 }
52
53 @Override
54 public DeviceEvent createOrUpdateDevice(ProviderId providerId, DeviceId deviceId,
55 DeviceDescription deviceDescription) {
56 return null;
57 }
58
59 @Override
60 public DeviceEvent markOffline(DeviceId deviceId) {
61 return null;
62 }
63
64 @Override
65 public List<DeviceEvent> updatePorts(ProviderId providerId, DeviceId deviceId,
66 List<PortDescription> portDescriptions) {
67 return null;
68 }
69
70 @Override
71 public DeviceEvent updatePortStatus(ProviderId providerId, DeviceId deviceId,
72 PortDescription portDescription) {
73 return null;
74 }
75
76 @Override
77 public List<Port> getPorts(DeviceId deviceId) {
78 return null;
79 }
80
81 @Override
Yuta HIGUCHI6eb00cc2016-06-10 11:55:12 -070082 public Stream<PortDescription> getPortDescriptions(ProviderId providerId,
83 DeviceId deviceId) {
84 return Stream.empty();
85 }
86
87 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -070088 public DeviceEvent updatePortStatistics(ProviderId providerId, DeviceId deviceId,
89 Collection<PortStatistics> portStats) {
90 return null;
91 }
92
93 @Override
94 public List<PortStatistics> getPortStatistics(DeviceId deviceId) {
95 return null;
96 }
97
98 @Override
99 public List<PortStatistics> getPortDeltaStatistics(DeviceId deviceId) {
100 return null;
101 }
102
103 @Override
104 public Port getPort(DeviceId deviceId, PortNumber portNumber) {
105 return null;
106 }
107
108 @Override
Yuta HIGUCHI6eb00cc2016-06-10 11:55:12 -0700109 public PortDescription getPortDescription(ProviderId providerId,
110 DeviceId deviceId,
111 PortNumber portNumber) {
112 return null;
113 }
114
115 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -0700116 public boolean isAvailable(DeviceId deviceId) {
117 return false;
118 }
119
120 @Override
121 public DeviceEvent removeDevice(DeviceId deviceId) {
122 return null;
123 }
124
125 @Override
126 public void setDelegate(DeviceStoreDelegate delegate) {
127
128 }
129
130 @Override
131 public void unsetDelegate(DeviceStoreDelegate delegate) {
132
133 }
134
135 @Override
136 public boolean hasDelegate() {
137 return false;
138 }
139}