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 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(Object obj)
BandwidthProfileAction.Action
getAction()
Obtains the type of this bandwidth profile action object.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()
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 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
-
-