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()java.util.Optional<java.lang.Long>cbs()Returns Committed Burst Size of Qos, Valid only in specific qos type.java.util.Optional<java.lang.Long>cir()Returns Committed Information Rate of Qos, Valid only in specific qos type.booleanequals(java.lang.Object obj)inthashCode()java.util.Optional<Bandwidth>maxRate()Returns the max rate of qos, Valid only in specific qos type.QosIdqosId()Returns qos identifier.java.util.Optional<java.util.Map<java.lang.Long,QueueDescription>>queues()Returns map of integer-Queue pairs, Valid only in specific qos type.java.lang.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 java.util.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 java.util.Optional<java.lang.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 java.util.Optional<java.lang.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 java.util.Optional<java.util.Map<java.lang.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(java.lang.Object obj)
- Overrides:
equalsin classAbstractDescription
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static DefaultQosDescription.Builder builder()
-
-