blob: 6b4ed3b1823917f245514cd39524e8f7428acded [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
2 * Copyright 2014 Open Networking Laboratory
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 */
tom61359e92014-09-16 15:50:27 -070016package org.onlab.onos.net.device;
17
18import org.onlab.onos.net.Device;
19import org.onlab.onos.net.DeviceId;
20import org.onlab.onos.net.MastershipRole;
21import org.onlab.onos.net.Port;
22import org.onlab.onos.net.PortNumber;
23
24import java.util.List;
25
26/**
27 * Test adapter for device service.
28 */
29public class DeviceServiceAdapter implements DeviceService {
30 @Override
31 public int getDeviceCount() {
32 return 0;
33 }
34
35 @Override
36 public Iterable<Device> getDevices() {
37 return null;
38 }
39
40 @Override
41 public Device getDevice(DeviceId deviceId) {
42 return null;
43 }
44
45 @Override
46 public MastershipRole getRole(DeviceId deviceId) {
47 return null;
48 }
49
50 @Override
51 public List<Port> getPorts(DeviceId deviceId) {
52 return null;
53 }
54
55 @Override
56 public Port getPort(DeviceId deviceId, PortNumber portNumber) {
57 return null;
58 }
59
60 @Override
61 public boolean isAvailable(DeviceId deviceId) {
62 return false;
63 }
64
65 @Override
66 public void addListener(DeviceListener listener) {
67 }
68
69 @Override
70 public void removeListener(DeviceListener listener) {
71 }
72
73}