alshabib | 8c2a8b3 | 2015-03-31 16:31:03 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
alshabib | 8c2a8b3 | 2015-03-31 16:31:03 -0700 | [diff] [blame] | 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 | |
| 18 | import com.google.common.primitives.UnsignedInteger; |
| 19 | |
| 20 | /** |
Frank Wang | e11a98d | 2016-10-26 17:04:03 +0800 | [diff] [blame] | 21 | * @deprecated in Junco Release (1.9.1), Use QueueDescription instead |
| 22 | * {@link org.onosproject.net.behaviour.QueueDescription} |
alshabib | 8c2a8b3 | 2015-03-31 16:31:03 -0700 | [diff] [blame] | 23 | */ |
Frank Wang | e11a98d | 2016-10-26 17:04:03 +0800 | [diff] [blame] | 24 | @Deprecated |
alshabib | 8c2a8b3 | 2015-03-31 16:31:03 -0700 | [diff] [blame] | 25 | public class QueueInfo { |
| 26 | |
| 27 | public enum Type { |
| 28 | /** |
| 29 | * Supports burst and priority as well as min and max rates. |
| 30 | */ |
| 31 | FULL, |
| 32 | |
| 33 | /** |
| 34 | * Only support min and max rates. |
| 35 | */ |
| 36 | MINMAX |
| 37 | } |
| 38 | |
| 39 | private final UnsignedInteger queueId; |
| 40 | private final Type type; |
| 41 | private final long minRate; |
| 42 | private final long maxRate; |
| 43 | private final long burst; |
| 44 | private final long priority; |
| 45 | |
| 46 | public QueueInfo(UnsignedInteger queueId, Type type, long minRate, |
| 47 | long maxRate, long burst, long priority) { |
| 48 | this.queueId = queueId; |
| 49 | this.type = type; |
| 50 | this.minRate = minRate; |
| 51 | this.maxRate = maxRate; |
| 52 | this.burst = burst; |
| 53 | this.priority = priority; |
| 54 | } |
| 55 | |
| 56 | //TODO builder |
| 57 | // public static QueueInfoBuilder builder() {} |
| 58 | } |