alshabib | 4294778 | 2015-03-31 14:59:06 -0700 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 16 | package org.onosproject.net.packet; |
| 17 | |
| 18 | import org.onosproject.core.ApplicationId; |
alshabib | 4294778 | 2015-03-31 14:59:06 -0700 | [diff] [blame] | 19 | import org.onosproject.net.flow.TrafficSelector; |
| 20 | |
| 21 | /** |
| 22 | * Represents a packet request made to devices. |
| 23 | */ |
| 24 | public interface PacketRequest { |
| 25 | |
| 26 | /** |
| 27 | * Obtain the traffic selector. |
Thomas Vachuska | 27bee09 | 2015-06-23 19:03:10 -0700 | [diff] [blame] | 28 | * |
alshabib | 4294778 | 2015-03-31 14:59:06 -0700 | [diff] [blame] | 29 | * @return a traffic selector |
| 30 | */ |
Sho SHIMIZU | 3310a34 | 2015-05-13 12:14:05 -0700 | [diff] [blame] | 31 | TrafficSelector selector(); |
alshabib | 4294778 | 2015-03-31 14:59:06 -0700 | [diff] [blame] | 32 | |
| 33 | /** |
| 34 | * Obtain the priority. |
Thomas Vachuska | 27bee09 | 2015-06-23 19:03:10 -0700 | [diff] [blame] | 35 | * |
alshabib | 4294778 | 2015-03-31 14:59:06 -0700 | [diff] [blame] | 36 | * @return a PacketPriority |
| 37 | */ |
Sho SHIMIZU | 3310a34 | 2015-05-13 12:14:05 -0700 | [diff] [blame] | 38 | PacketPriority priority(); |
alshabib | 4294778 | 2015-03-31 14:59:06 -0700 | [diff] [blame] | 39 | |
| 40 | /** |
| 41 | * Obtain the application id. |
Thomas Vachuska | 27bee09 | 2015-06-23 19:03:10 -0700 | [diff] [blame] | 42 | * |
alshabib | 4294778 | 2015-03-31 14:59:06 -0700 | [diff] [blame] | 43 | * @return an application id |
| 44 | */ |
Sho SHIMIZU | 3310a34 | 2015-05-13 12:14:05 -0700 | [diff] [blame] | 45 | ApplicationId appId(); |
alshabib | 4294778 | 2015-03-31 14:59:06 -0700 | [diff] [blame] | 46 | |
alshabib | 4294778 | 2015-03-31 14:59:06 -0700 | [diff] [blame] | 47 | } |