Package org.onosproject.net.behaviour
Class DefaultQosDescription.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.DefaultQosDescription.Builder
-
- All Implemented Interfaces:
QosDescription.Builder
- Enclosing class:
- DefaultQosDescription
public static final class DefaultQosDescription.Builder extends java.lang.Object implements QosDescription.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QosDescription
build()
Builds an immutable qos description.DefaultQosDescription.Builder
cbs(java.lang.Long cbs)
Returns qos description builder with a given cbs.DefaultQosDescription.Builder
cir(java.lang.Long cir)
Returns qos description builder with a given cir.DefaultQosDescription.Builder
maxRate(Bandwidth maxRate)
Returns qos description builder with given maxRate.DefaultQosDescription.Builder
qosId(QosId qosId)
Returns qos description builder with a given name.DefaultQosDescription.Builder
queues(java.util.Map<java.lang.Long,QueueDescription> queues)
Returns qos description builder with a given queues.DefaultQosDescription.Builder
type(QosDescription.Type type)
Returns qos description builder with a given type.
-
-
-
Method Detail
-
build
public QosDescription build()
Description copied from interface:QosDescription.Builder
Builds an immutable qos description.- Specified by:
build
in interfaceQosDescription.Builder
- Returns:
- qos description
-
qosId
public DefaultQosDescription.Builder qosId(QosId qosId)
Description copied from interface:QosDescription.Builder
Returns qos description builder with a given name.- Specified by:
qosId
in interfaceQosDescription.Builder
- Parameters:
qosId
- qos identifier- Returns:
- bridge description builder
-
type
public DefaultQosDescription.Builder type(QosDescription.Type type)
Description copied from interface:QosDescription.Builder
Returns qos description builder with a given type.- Specified by:
type
in interfaceQosDescription.Builder
- Parameters:
type
- qos type- Returns:
- bridge description builder
-
maxRate
public DefaultQosDescription.Builder maxRate(Bandwidth maxRate)
Description copied from interface:QosDescription.Builder
Returns qos description builder with given maxRate.- Specified by:
maxRate
in interfaceQosDescription.Builder
- Parameters:
maxRate
- qos max rate- Returns:
- qos description builder
-
cir
public DefaultQosDescription.Builder cir(java.lang.Long cir)
Description copied from interface:QosDescription.Builder
Returns qos description builder with a given cir.- Specified by:
cir
in interfaceQosDescription.Builder
- Parameters:
cir
- in bytes of IP packets per second- Returns:
- qos description builder
-
cbs
public DefaultQosDescription.Builder cbs(java.lang.Long cbs)
Description copied from interface:QosDescription.Builder
Returns qos description builder with a given cbs.- Specified by:
cbs
in interfaceQosDescription.Builder
- Parameters:
cbs
- in bytes and represents a token bucket- Returns:
- qos description builder
-
queues
public DefaultQosDescription.Builder queues(java.util.Map<java.lang.Long,QueueDescription> queues)
Description copied from interface:QosDescription.Builder
Returns qos description builder with a given queues.- Specified by:
queues
in interfaceQosDescription.Builder
- Parameters:
queues
- the map from queue numbers to Queue records- Returns:
- qos description builder
-
-