Package org.onosproject.net.behaviour
Class BandwidthProfileAction
- java.lang.Object
-
- org.onosproject.net.behaviour.BandwidthProfileAction
-
@Beta public final class BandwidthProfileAction extends Object
Represents an action to be taken by a marker/policer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBandwidthProfileAction.ActionDenotes the type of action to be taken.static classBandwidthProfileAction.BuilderBuilder of BandwidthProfileAction entities.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BandwidthProfileAction.Builderbuilder()Returns a new builder.booleanequals(Object obj)BandwidthProfileAction.ActiongetAction()Obtains the type of this bandwidth profile action object.ShortgetDropPrecedence()Obtains the drop precedence corresponding to the REMARK action.org.onlab.packet.DscpClassgetDscpClass()Obtains the DSCP class corresponding to the REMARK action.org.onlab.packet.IPPrecedencegetIpPrecedence()Obtains the IP precedence corresponding to the REMARK action.inthashCode()StringtoString()
-
-
-
Method Detail
-
getAction
public BandwidthProfileAction.Action getAction()
Obtains the type of this bandwidth profile action object.- Returns:
- the bandwidth profile action type
-
getDscpClass
public org.onlab.packet.DscpClass getDscpClass()
Obtains the DSCP class corresponding to the REMARK action. If this is not a REMARK action or if another field is remarked null is returned.- Returns:
- the DSCP class for the action; may be null
-
getIpPrecedence
public org.onlab.packet.IPPrecedence getIpPrecedence()
Obtains the IP precedence corresponding to the REMARK action. If this is not a REMARK action or if another field is remarked null is returned.- Returns:
- the IP precedence for the action; may be null
-
getDropPrecedence
public Short getDropPrecedence()
Obtains the drop precedence corresponding to the REMARK action. If this is not a REMARK action or if another field is remarked null is returned.- Returns:
- the drop precedence for the action; may be null
-
builder
public static BandwidthProfileAction.Builder builder()
Returns a new builder.- Returns:
- new builder
-
-