Package org.onosproject.net.behaviour
Class BandwidthProfileAction
- java.lang.Object
-
- org.onosproject.net.behaviour.BandwidthProfileAction
-
@Beta public final class BandwidthProfileAction extends java.lang.ObjectRepresents 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(java.lang.Object obj)BandwidthProfileAction.ActiongetAction()Obtains the type of this bandwidth profile action object.java.lang.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()java.lang.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 java.lang.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
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-