@Beta public final class BandwidthProfile extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BandwidthProfile.Builder
Builder of BandwidthProfile entities.
|
Modifier and Type | Method and Description |
---|---|
static BandwidthProfile.Builder |
builder()
Returns a new builder.
|
Integer |
cbs()
Obtains the committed burst size (CBS) of this bandwidth profile.
|
Bandwidth |
cir()
Obtains the committed information rate (CIR) of this bandwidth profile.
|
boolean |
colorAware()
Obtains the color-aware mode of the bandwidth profile.
|
Integer |
ebs()
Obtains the excess burst size (EBS) of this bandwidth profile.
|
boolean |
equals(Object obj) |
static BandwidthProfile |
fromMeter(Meter meter)
Creates a bandwidth profile based on the parameters of a Meter.
|
BandwidthProfileAction |
greenAction()
Obtains the action to be taken for traffic marked as green.
|
int |
hashCode() |
String |
name()
Obtains the name of this bandwidth profile.
|
Integer |
pbs()
Obtains the peak burst size (PBS) of this bandwidth profile.
|
Bandwidth |
pir()
Obtains the peak information rate (PIR) of this bandwidth profile.
|
BandwidthProfileAction |
redAction()
Obtains the action to be taken for traffic marked as red.
|
String |
toString() |
org.onosproject.net.behaviour.BandwidthProfile.Type |
type()
Obtains the bandwidth profile type depending on the profile parameters.
|
BandwidthProfileAction |
yellowAction()
Obtains the action to be taken for traffic marked as yellow.
|
public String name()
public Bandwidth cir()
public Bandwidth pir()
public Integer cbs()
public Integer pbs()
public Integer ebs()
public BandwidthProfileAction greenAction()
public BandwidthProfileAction yellowAction()
public BandwidthProfileAction redAction()
public boolean colorAware()
public org.onosproject.net.behaviour.BandwidthProfile.Type type()
public static BandwidthProfile fromMeter(Meter meter)
meter
- the Meter to be used for creating the bandwidth profilepublic static BandwidthProfile.Builder builder()