blob: c4386593286c579af8ca4c8a5c4670e751034fe9 [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;
22import java.util.Map;
23
Thomas Vachuska27bee092015-06-23 19:03:10 -070024/**
25 * Test adapter for packet service.
26 */
27public class PacketServiceAdapter implements PacketService {
28 @Override
29 public void addProcessor(PacketProcessor processor, int priority) {
30 }
31
32 @Override
33 public void removeProcessor(PacketProcessor processor) {
34 }
35
36 @Override
Thomas Vachuska7f171b22015-08-21 12:49:08 -070037 public Map<Integer, PacketProcessor> getProcessors() {
38 return null;
39 }
40
41 @Override
42 public List<PacketRequest> getRequests() {
43 return null;
44 }
45
46 @Override
Thomas Vachuska27bee092015-06-23 19:03:10 -070047 public void requestPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId) {
48 }
49
50 @Override
51 public void cancelPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId) {
52 }
53
54 @Override
55 public void emit(OutboundPacket packet) {
56 }
57}