Frank Wang | e11a98d | 2016-10-26 17:04:03 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017-present 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.behaviour; |
| 17 | import com.google.common.annotations.Beta; |
| 18 | import org.onosproject.net.driver.HandlerBehaviour; |
| 19 | |
| 20 | import java.util.Collection; |
| 21 | |
| 22 | /** |
| 23 | * Behaviour for handling various operations for qos configurations. |
| 24 | */ |
| 25 | @Beta |
| 26 | public interface QosConfigBehaviour extends HandlerBehaviour { |
| 27 | |
| 28 | /** |
| 29 | * Obtain all qoses configured on a device. |
| 30 | * |
| 31 | * @return a set of qos descriptions |
| 32 | */ |
| 33 | Collection<QosDescription> getQoses(); |
| 34 | |
| 35 | /** |
| 36 | * Obtain a qos configured on a device. |
| 37 | * @param qosDesc qos description |
| 38 | * @return a qos description |
| 39 | */ |
| 40 | QosDescription getQos(QosDescription qosDesc); |
| 41 | |
| 42 | /** |
| 43 | * create QoS configuration on a device. |
| 44 | * @param qosDesc qos description |
| 45 | * @return true if succeeds, or false |
| 46 | */ |
| 47 | boolean addQoS(QosDescription qosDesc); |
| 48 | |
| 49 | /** |
| 50 | * Delete a QoS configuration. |
| 51 | * @param qosId qos identifier |
| 52 | */ |
| 53 | void deleteQoS(QosId qosId); |
| 54 | } |