Class ProtectionConstraint
- java.lang.Object
-
- org.onosproject.net.intent.constraint.MarkerConstraint
-
- org.onosproject.net.intent.constraint.ProtectionConstraint
-
- All Implemented Interfaces:
Constraint
@Beta public final class ProtectionConstraint extends MarkerConstraint
Constraint that determines whether to employ path protection.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProtectionConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectionConstraint
protection()
Returns protection constraint.static boolean
requireProtectedPath(Intent intent)
Determines whether to utilize path protection for the given intent.java.lang.String
toString()
-
Methods inherited from class org.onosproject.net.intent.constraint.MarkerConstraint
cost, equals, hashCode, validate
-
-
-
-
Method Detail
-
requireProtectedPath
public static boolean requireProtectedPath(Intent intent)
Determines whether to utilize path protection for the given intent.- Parameters:
intent
- intent to be inspected- Returns:
- whether the intent has a ProtectionConstraint
-
protection
public static ProtectionConstraint protection()
Returns protection constraint.- Returns:
- protection constraint
-
toString
public java.lang.String toString()
- Overrides:
toString
in classMarkerConstraint
-
-