blob: b09b35f64e45f8dca1aada2510f23e6c5df415fb [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
helenyrwufd296b62016-06-22 17:43:02 -070060 public boolean markOnline(DeviceId deviceId) {
61 return false;
62 }
63
64 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -070065 public DeviceEvent markOffline(DeviceId deviceId) {
66 return null;
67 }
68
69 @Override
70 public List<DeviceEvent> updatePorts(ProviderId providerId, DeviceId deviceId,
71 List<PortDescription> portDescriptions) {
72 return null;
73 }
74
75 @Override
76 public DeviceEvent updatePortStatus(ProviderId providerId, DeviceId deviceId,
77 PortDescription portDescription) {
78 return null;
79 }
80
81 @Override
82 public List<Port> getPorts(DeviceId deviceId) {
83 return null;
84 }
85
86 @Override
Yuta HIGUCHI6eb00cc2016-06-10 11:55:12 -070087 public Stream<PortDescription> getPortDescriptions(ProviderId providerId,
88 DeviceId deviceId) {
89 return Stream.empty();
90 }
91
92 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -070093 public DeviceEvent updatePortStatistics(ProviderId providerId, DeviceId deviceId,
94 Collection<PortStatistics> portStats) {
95 return null;
96 }
97
98 @Override
99 public List<PortStatistics> getPortStatistics(DeviceId deviceId) {
100 return null;
101 }
102
103 @Override
Viswanath KSP22774cd2016-08-20 20:06:30 +0530104 public PortStatistics getStatisticsForPort(DeviceId deviceId, PortNumber portNumber) {
105 return null;
106 }
107
108 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -0700109 public List<PortStatistics> getPortDeltaStatistics(DeviceId deviceId) {
110 return null;
111 }
112
113 @Override
Viswanath KSP22774cd2016-08-20 20:06:30 +0530114 public PortStatistics getDeltaStatisticsForPort(DeviceId deviceId, PortNumber portNumber) {
115 return null;
116 }
117
118 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -0700119 public Port getPort(DeviceId deviceId, PortNumber portNumber) {
120 return null;
121 }
122
123 @Override
Yuta HIGUCHI6eb00cc2016-06-10 11:55:12 -0700124 public PortDescription getPortDescription(ProviderId providerId,
125 DeviceId deviceId,
126 PortNumber portNumber) {
127 return null;
128 }
129
130 @Override
Andrea Campanella58454b92016-04-01 15:19:00 -0700131 public boolean isAvailable(DeviceId deviceId) {
132 return false;
133 }
134
135 @Override
136 public DeviceEvent removeDevice(DeviceId deviceId) {
137 return null;
138 }
139
140 @Override
141 public void setDelegate(DeviceStoreDelegate delegate) {
142
143 }
144
145 @Override
146 public void unsetDelegate(DeviceStoreDelegate delegate) {
147
148 }
149
150 @Override
151 public boolean hasDelegate() {
152 return false;
153 }
154}