Class PolicyKey
- java.lang.Object
-
- org.onosproject.segmentrouting.policy.impl.PolicyKey
-
public class PolicyKey extends Object
Policy key used by the store to track the operations ongoing on the devices. Policy 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 PolicyKey(org.onosproject.net.DeviceId deviceId, org.onosproject.segmentrouting.policy.api.PolicyId policyId)Constructs new policy key with given device id and policy 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 PolicyKeyfromString(String str)Parses from a string the police key.inthashCode()org.onosproject.segmentrouting.policy.api.PolicyIdpolicyId()Gets policy id.StringtoString()
-
-
-
Method Detail
-
deviceId
public org.onosproject.net.DeviceId deviceId()
Gets device id.- Returns:
- device id of the policy key
-
policyId
public org.onosproject.segmentrouting.policy.api.PolicyId policyId()
Gets policy id.- Returns:
- the id of the policy
-
fromString
public static PolicyKey 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
-
-