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 class
DefaultQosDescription.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.Builder
builder()
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.boolean
equals(java.lang.Object obj)
int
hashCode()
java.util.Optional<Bandwidth>
maxRate()
Returns the max rate of qos, Valid only in specific qos type.QosId
qosId()
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.String
toString()
QosDescription.Type
type()
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:QosDescription
Returns qos identifier.- Specified by:
qosId
in interfaceQosDescription
- Returns:
- qos identifier
-
type
public QosDescription.Type type()
Description copied from interface:QosDescription
Returns qos type.- Specified by:
type
in interfaceQosDescription
- Returns:
- qos type
-
maxRate
public java.util.Optional<Bandwidth> maxRate()
Description copied from interface:QosDescription
Returns the max rate of qos, Valid only in specific qos type.- Specified by:
maxRate
in 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:QosDescription
Returns Committed Information Rate of Qos, Valid only in specific qos type. the CIR is measured in bytes of IP packets per second.- Specified by:
cir
in interfaceQosDescription
- Returns:
- cir
-
cbs
public java.util.Optional<java.lang.Long> cbs()
Description copied from interface:QosDescription
Returns Committed Burst Size of Qos, Valid only in specific qos type. the CBS is measured in bytes and represents a token bucket.- Specified by:
cbs
in interfaceQosDescription
- Returns:
- cbs
-
queues
public java.util.Optional<java.util.Map<java.lang.Long,QueueDescription>> queues()
Description copied from interface:QosDescription
Returns map of integer-Queue pairs, Valid only in specific qos type.- Specified by:
queues
in interfaceQosDescription
- Returns:
- queues
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractDescription
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractDescription
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builder
public static DefaultQosDescription.Builder builder()
-
-