Package org.onosproject.net.behaviour
Class BandwidthProfileAction
- java.lang.Object
-
- org.onosproject.net.behaviour.BandwidthProfileAction
-
@Beta public final class BandwidthProfileAction extends java.lang.Object
Represents an action to be taken by a marker/policer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BandwidthProfileAction.Action
Denotes the type of action to be taken.static class
BandwidthProfileAction.Builder
Builder of BandwidthProfileAction entities.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BandwidthProfileAction.Builder
builder()
Returns a new builder.boolean
equals(java.lang.Object obj)
BandwidthProfileAction.Action
getAction()
Obtains the type of this bandwidth profile action object.java.lang.Short
getDropPrecedence()
Obtains the drop precedence corresponding to the REMARK action.DscpClass
getDscpClass()
Obtains the DSCP class corresponding to the REMARK action.IPPrecedence
getIpPrecedence()
Obtains the IP precedence corresponding to the REMARK action.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getAction
public BandwidthProfileAction.Action getAction()
Obtains the type of this bandwidth profile action object.- Returns:
- the bandwidth profile action type
-
getDscpClass
public 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 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-