@Beta
public final class BandwidthProfile
extends java.lang.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.
|
java.lang.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.
|
java.lang.Integer |
ebs()
Obtains the excess burst size (EBS) of this bandwidth profile.
|
boolean |
equals(java.lang.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() |
java.lang.String |
name()
Obtains the name of this bandwidth profile.
|
java.lang.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.
|
java.lang.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 java.lang.String name()
public Bandwidth cir()
public Bandwidth pir()
public java.lang.Integer cbs()
public java.lang.Integer pbs()
public java.lang.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()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object