public static class DominantResourceFairnessPolicy.DominantResourceFairnessComparator extends Object implements Comparator<Schedulable>
| Constructor and Description |
|---|
DominantResourceFairnessComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Schedulable s1,
Schedulable s2) |
void |
setClusterCapacity(org.apache.hadoop.yarn.api.records.Resource clusterCapacity) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic void setClusterCapacity(org.apache.hadoop.yarn.api.records.Resource clusterCapacity)
public int compare(Schedulable s1, Schedulable s2)
compare in interface Comparator<Schedulable>Copyright © 2017 Apache Software Foundation. All Rights Reserved.