Class TrafficMatchRequest
- java.lang.Object
-
- org.onosproject.segmentrouting.policy.impl.TrafficMatchRequest
-
public final class TrafficMatchRequest extends Object
Representation of a traffic match.
-
-
Constructor Summary
Constructors Constructor Description TrafficMatchRequest(org.onosproject.segmentrouting.policy.api.TrafficMatch tMatch)Builds a traffic match request in pending add.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()org.onosproject.segmentrouting.policy.api.PolicyIdpolicyId()Returns the id of the policy associated with.StringtoString()org.onosproject.segmentrouting.policy.api.TrafficMatchtrafficMatch()Returns the traffic match associated with.org.onosproject.segmentrouting.policy.api.TrafficMatchIdtrafficMatchId()Returns the traffic match id.org.onosproject.segmentrouting.policy.api.TrafficMatchPrioritytrafficMatchPriority()Returns the priority.org.onosproject.segmentrouting.policy.api.TrafficMatchStatetrafficMatchState()Returns the traffic match state.voidtrafficMatchState(org.onosproject.segmentrouting.policy.api.TrafficMatchState trafficMatchState)To update the traffic match state.org.onosproject.net.flow.TrafficSelectortrafficSelector()Returns the traffic selector associated with.
-
-
-
Method Detail
-
trafficMatchState
public void trafficMatchState(org.onosproject.segmentrouting.policy.api.TrafficMatchState trafficMatchState)
To update the traffic match state.- Parameters:
trafficMatchState- the new state
-
trafficMatchState
public org.onosproject.segmentrouting.policy.api.TrafficMatchState trafficMatchState()
Returns the traffic match state.- Returns:
- the state of the traffic match
-
trafficMatchId
public org.onosproject.segmentrouting.policy.api.TrafficMatchId trafficMatchId()
Returns the traffic match id.- Returns:
- the id of the traffic match
-
policyId
public org.onosproject.segmentrouting.policy.api.PolicyId policyId()
Returns the id of the policy associated with.- Returns:
- the policy id
-
trafficSelector
public org.onosproject.net.flow.TrafficSelector trafficSelector()
Returns the traffic selector associated with.- Returns:
- the traffic selector
-
trafficMatch
public org.onosproject.segmentrouting.policy.api.TrafficMatch trafficMatch()
Returns the traffic match associated with.- Returns:
- the traffic match
-
trafficMatchPriority
public org.onosproject.segmentrouting.policy.api.TrafficMatchPriority trafficMatchPriority()
Returns the priority.- Returns:
- the priority
-
-