blob: 2993ce6bb98ef37238cd94437766743e84cfc180 [file] [log] [blame]
Thomas Vachuska27bee092015-06-23 19:03:10 -07001/*
2 * Copyright 2015 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 */
16package org.onosproject.net.packet;
17
18import org.onosproject.core.ApplicationId;
19import org.onosproject.net.flow.TrafficSelector;
20
Thomas Vachuska7f171b22015-08-21 12:49:08 -070021import java.util.List;
Thomas Vachuska7f171b22015-08-21 12:49:08 -070022
Thomas Vachuska27bee092015-06-23 19:03:10 -070023/**
24 * Test adapter for packet service.
25 */
26public class PacketServiceAdapter implements PacketService {
27 @Override
28 public void addProcessor(PacketProcessor processor, int priority) {
29 }
30
31 @Override
32 public void removeProcessor(PacketProcessor processor) {
33 }
34
35 @Override
Thomas Vachuska924cda42015-09-22 12:11:27 -070036 public List<PacketProcessorEntry> getProcessors() {
Thomas Vachuska7f171b22015-08-21 12:49:08 -070037 return null;
38 }
39
40 @Override
41 public List<PacketRequest> getRequests() {
42 return null;
43 }
44
45 @Override
Thomas Vachuska27bee092015-06-23 19:03:10 -070046 public void requestPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId) {
47 }
48
49 @Override
50 public void cancelPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId) {
51 }
52
53 @Override
54 public void emit(OutboundPacket packet) {
55 }
56}