Package org.onosproject.net.behaviour
Class DefaultQosDescription
- java.lang.Object
-
- org.onosproject.net.AbstractDescription
-
- org.onosproject.net.behaviour.DefaultQosDescription
-
- All Implemented Interfaces:
Annotated,QosDescription,Description
@Beta public final class DefaultQosDescription extends AbstractDescription implements QosDescription
Default implementation of Qos description entity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultQosDescription.Builder-
Nested classes/interfaces inherited from interface org.onosproject.net.behaviour.QosDescription
QosDescription.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultQosDescription.Builderbuilder()Optional<Long>cbs()Returns Committed Burst Size of Qos, Valid only in specific qos type.Optional<Long>cir()Returns Committed Information Rate of Qos, Valid only in specific qos type.booleanequals(Object obj)inthashCode()Optional<Bandwidth>maxRate()Returns the max rate of qos, Valid only in specific qos type.QosIdqosId()Returns qos identifier.Optional<Map<Long,QueueDescription>>queues()Returns map of integer-Queue pairs, Valid only in specific qos type.StringtoString()QosDescription.Typetype()Returns qos type.-
Methods inherited from class org.onosproject.net.AbstractDescription
annotations
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.onosproject.net.Description
annotations
-
-
-
-
Method Detail
-
qosId
public QosId qosId()
Description copied from interface:QosDescriptionReturns qos identifier.- Specified by:
qosIdin interfaceQosDescription- Returns:
- qos identifier
-
type
public QosDescription.Type type()
Description copied from interface:QosDescriptionReturns qos type.- Specified by:
typein interfaceQosDescription- Returns:
- qos type
-
maxRate
public Optional<Bandwidth> maxRate()
Description copied from interface:QosDescriptionReturns the max rate of qos, Valid only in specific qos type.- Specified by:
maxRatein interfaceQosDescription- Returns:
- Maximum rate shared by all queued traffic, in bit/s.
-
cir
public Optional<Long> cir()
Description copied from interface:QosDescriptionReturns Committed Information Rate of Qos, Valid only in specific qos type. the CIR is measured in bytes of IP packets per second.- Specified by:
cirin interfaceQosDescription- Returns:
- cir
-
cbs
public Optional<Long> cbs()
Description copied from interface:QosDescriptionReturns Committed Burst Size of Qos, Valid only in specific qos type. the CBS is measured in bytes and represents a token bucket.- Specified by:
cbsin interfaceQosDescription- Returns:
- cbs
-
queues
public Optional<Map<Long,QueueDescription>> queues()
Description copied from interface:QosDescriptionReturns map of integer-Queue pairs, Valid only in specific qos type.- Specified by:
queuesin interfaceQosDescription- Returns:
- queues
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractDescription
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractDescription
-
builder
public static DefaultQosDescription.Builder builder()
-
-