Class 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.
    • Constructor Detail

      • TrafficMatchRequest

        public TrafficMatchRequest​(org.onosproject.segmentrouting.policy.api.TrafficMatch tMatch)
        Builds a traffic match request in pending add.
        Parameters:
        tMatch - the traffic match
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object