blob: a4e45ac87090ef4199d3802e521a38000eed49bf [file] [log] [blame]
alshabib42947782015-03-31 14:59:06 -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.FlowRule;
20import org.onosproject.net.flow.TrafficSelector;
21
22/**
23 * Represents a packet request made to devices.
24 */
25public interface PacketRequest {
26
27 /**
28 * Obtain the traffic selector.
29 * @return a traffic selector
30 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070031 TrafficSelector selector();
alshabib42947782015-03-31 14:59:06 -070032
33 /**
34 * Obtain the priority.
35 * @return a PacketPriority
36 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070037 PacketPriority priority();
alshabib42947782015-03-31 14:59:06 -070038
39 /**
40 * Obtain the application id.
41 * @return an application id
42 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070043 ApplicationId appId();
alshabib42947782015-03-31 14:59:06 -070044
45 /**
46 * Obtain the table type.
47 * @return a table type
48 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070049 FlowRule.Type tableType();
alshabib42947782015-03-31 14:59:06 -070050
51}