blob: 22d494025fe0ed0d3bd14986037b93d6cd43cf13 [file] [log] [blame]
Thomas Vachuska27bee092015-06-23 19:03:10 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Thomas Vachuska27bee092015-06-23 19:03:10 -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 */
16package org.onosproject.net.packet;
17
18import org.onosproject.core.ApplicationId;
alshabib19e2cea2015-12-07 11:31:49 -080019import org.onosproject.net.DeviceId;
Thomas Vachuska27bee092015-06-23 19:03:10 -070020import org.onosproject.net.flow.TrafficSelector;
21
Thomas Vachuska7f171b22015-08-21 12:49:08 -070022import java.util.List;
alshabib19e2cea2015-12-07 11:31:49 -080023import java.util.Optional;
Thomas Vachuska7f171b22015-08-21 12:49:08 -070024
Thomas Vachuska27bee092015-06-23 19:03:10 -070025/**
26 * Test adapter for packet service.
27 */
28public class PacketServiceAdapter implements PacketService {
29 @Override
30 public void addProcessor(PacketProcessor processor, int priority) {
31 }
32
33 @Override
34 public void removeProcessor(PacketProcessor processor) {
35 }
36
37 @Override
Thomas Vachuska924cda42015-09-22 12:11:27 -070038 public List<PacketProcessorEntry> getProcessors() {
Thomas Vachuska7f171b22015-08-21 12:49:08 -070039 return null;
40 }
41
42 @Override
43 public List<PacketRequest> getRequests() {
44 return null;
45 }
46
47 @Override
alshabib19e2cea2015-12-07 11:31:49 -080048 public void requestPackets(TrafficSelector selector, PacketPriority priority,
49 ApplicationId appId) {
Thomas Vachuska27bee092015-06-23 19:03:10 -070050 }
51
52 @Override
alshabib19e2cea2015-12-07 11:31:49 -080053 public void requestPackets(TrafficSelector selector, PacketPriority priority,
54 ApplicationId appId, Optional<DeviceId> deviceId) {
55
56 }
57
58 @Override
59 public void cancelPackets(TrafficSelector selector, PacketPriority priority,
60 ApplicationId appId) {
61 }
62
63 @Override
64 public void cancelPackets(TrafficSelector selector, PacketPriority priority,
65 ApplicationId appId, Optional<DeviceId> deviceId) {
66
Thomas Vachuska27bee092015-06-23 19:03:10 -070067 }
68
69 @Override
70 public void emit(OutboundPacket packet) {
71 }
72}