Class AntiAffinitySchedulingConstraint
- java.lang.Object
-
- org.apache.nemo.runtime.master.scheduler.AntiAffinitySchedulingConstraint
-
- All Implemented Interfaces:
SchedulingConstraint
@ThreadSafe @AssociatedProperty(ResourceAntiAffinityProperty.class) public final class AntiAffinitySchedulingConstraint extends java.lang.Object implements SchedulingConstraint
Check if one of the tasks running on the executor, and the task to schedule are both in the anti-affinity group.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
testSchedulability(ExecutorRepresenter executor, Task task)
-
-
-
Method Detail
-
testSchedulability
public boolean testSchedulability(ExecutorRepresenter executor, Task task)
- Specified by:
testSchedulability
in interfaceSchedulingConstraint
-
-