blob: f77afe021925b0a35509ecac0af4b4121216002f [file] [log] [blame]
Carmelo Cascone0761cd32018-08-29 19:22:50 -07001/*
2 * Copyright 2018-present Open Networking Foundation
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
17package org.onosproject.net.pi;
18
19import org.onosproject.net.DeviceId;
20import org.onosproject.net.pi.model.PiPipeconf;
21import org.onosproject.net.pi.model.PiPipeconfId;
Carmelo Cascone75a9a892019-04-22 12:12:23 -070022import org.onosproject.net.pi.service.PiPipeconfListener;
Carmelo Cascone0761cd32018-08-29 19:22:50 -070023import org.onosproject.net.pi.service.PiPipeconfService;
24
25import java.util.Collections;
26import java.util.Optional;
27
28/**
29 * Test adapter of PiPipeconfService.
30 */
31public class PiPipeconfServiceAdapter implements PiPipeconfService {
32 @Override
33 public void register(PiPipeconf pipeconf) throws IllegalStateException {
34
35 }
36
37 @Override
Carmelo Cascone75a9a892019-04-22 12:12:23 -070038 public void unregister(PiPipeconfId pipeconfId) throws IllegalStateException {
Carmelo Cascone0761cd32018-08-29 19:22:50 -070039
40 }
41
42 @Override
43 public Iterable<PiPipeconf> getPipeconfs() {
44 return Collections.emptyList();
45 }
46
47 @Override
48 public Optional<PiPipeconf> getPipeconf(PiPipeconfId id) {
49 return Optional.empty();
50 }
51
52 @Override
Carmelo Cascone4c289b72019-01-22 15:30:45 -080053 public Optional<PiPipeconf> getPipeconf(DeviceId deviceId) {
54 return Optional.empty();
55 }
56
57 @Override
Carmelo Cascone0761cd32018-08-29 19:22:50 -070058 public void bindToDevice(PiPipeconfId pipeconfId, DeviceId deviceId) {
59
60 }
61
62 @Override
63 public String getMergedDriver(DeviceId deviceId, PiPipeconfId pipeconfId) {
64 return null;
65 }
66
67 @Override
68 public Optional<PiPipeconfId> ofDevice(DeviceId deviceId) {
69 return Optional.empty();
70 }
Carmelo Cascone75a9a892019-04-22 12:12:23 -070071
72 @Override
73 public void addListener(PiPipeconfListener listener) {
74
75 }
76
77 @Override
78 public void removeListener(PiPipeconfListener listener) {
79
80 }
Carmelo Cascone0761cd32018-08-29 19:22:50 -070081}