Class NonDisruptiveConstraint
- java.lang.Object
-
- org.onosproject.net.intent.constraint.MarkerConstraint
-
- org.onosproject.net.intent.constraint.NonDisruptiveConstraint
-
- All Implemented Interfaces:
Constraint
public final class NonDisruptiveConstraint extends MarkerConstraint
Constraint to request a non-disruptive intent reallocation.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NonDisruptiveConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NonDisruptiveConstraint
nonDisruptive()
Returns the nonDisruptiveConstraint.static boolean
requireNonDisruptive(Intent intent)
Determines whether the intent requires a non-disruptive reallocation.String
toString()
-
Methods inherited from class org.onosproject.net.intent.constraint.MarkerConstraint
cost, equals, hashCode, validate
-
-
-
-
Method Detail
-
requireNonDisruptive
public static boolean requireNonDisruptive(Intent intent)
Determines whether the intent requires a non-disruptive reallocation.- Parameters:
intent
- intent to be inspected- Returns:
- whether the intent has a NonDisruptiveConstraint
-
nonDisruptive
public static NonDisruptiveConstraint nonDisruptive()
Returns the nonDisruptiveConstraint.- Returns:
- non-disruptive constraint
-
toString
public String toString()
- Overrides:
toString
in classMarkerConstraint
-
-