Class TrafficMatchKey
- java.lang.Object
-
- org.onosproject.segmentrouting.policy.impl.TrafficMatchKey
-
public class TrafficMatchKey extends Object
Traffic match key used by the store to track the operations ongoing on the devices. Traffic match is the high level intent expressed by the user that gets translated by the PolicyManager in modifications operated on the devices. The policy operations are more important than the policy itself without them the policy cannot be considered fulfilled.
-
-
Constructor Summary
Constructors Constructor Description TrafficMatchKey(org.onosproject.net.DeviceId deviceId, org.onosproject.segmentrouting.policy.api.TrafficMatchId trafficMatchId)Constructs new traffic match key with given device id and traffic match id.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.onosproject.net.DeviceIddeviceId()Gets device id.booleanequals(Object obj)static TrafficMatchKeyfromString(String str)Parses from a string the police key.inthashCode()StringtoString()org.onosproject.segmentrouting.policy.api.TrafficMatchIdtrafficMatchId()Gets traffic match id.
-
-
-
Constructor Detail
-
TrafficMatchKey
public TrafficMatchKey(org.onosproject.net.DeviceId deviceId, org.onosproject.segmentrouting.policy.api.TrafficMatchId trafficMatchId)Constructs new traffic match key with given device id and traffic match id.- Parameters:
deviceId- device idtrafficMatchId- traffic match id
-
-
Method Detail
-
deviceId
public org.onosproject.net.DeviceId deviceId()
Gets device id.- Returns:
- device id of the policy key
-
trafficMatchId
public org.onosproject.segmentrouting.policy.api.TrafficMatchId trafficMatchId()
Gets traffic match id.- Returns:
- the id of the traffic match
-
fromString
public static TrafficMatchKey fromString(String str)
Parses from a string the police key.- Parameters:
str- the string to parse- Returns:
- the policy key if present in the str, null otherwise
-
-