java.util.Comparator<Schedulable>public abstract static class DominantResourceFairnessPolicy.DominantResourceFairnessComparator extends java.lang.Object implements java.util.Comparator<Schedulable>
Schedulable instances according to the
DRF policy. If neither instance is below min share, approximate fair share
ratios are compared. Subclasses of this class will do the actual work of
the comparison, specialized for the number of configured resource types.| Constructor | Description |
|---|---|
DominantResourceFairnessComparator() |
| Modifier and Type | Method | Description |
|---|---|---|
protected int |
compareAttributes(Schedulable s1,
Schedulable s2) |
This method is used when apps are tied in fairness ratio.
|
void |
setFSContext(FSContext fsContext) |
protected FSContext fsContext
public void setFSContext(FSContext fsContext)
protected int compareAttributes(Schedulable s1, Schedulable s2)
s1 - the first item to compares2 - the second item to compareCopyright © 2008–2025 Apache Software Foundation. All rights reserved.