org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair
Class FifoAppComparator

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FifoAppComparator
All Implemented Interfaces:
Serializable, Comparator<AppSchedulable>

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class FifoAppComparator
extends Object
implements Comparator<AppSchedulable>, Serializable

Order AppSchedulable objects by priority and then by submit time, as in the default scheduler in Hadoop.

See Also:
Serialized Form

Constructor Summary
FifoAppComparator()
           
 
Method Summary
 int compare(AppSchedulable a1, AppSchedulable a2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

FifoAppComparator

public FifoAppComparator()
Method Detail

compare

public int compare(AppSchedulable a1,
                   AppSchedulable a2)
Specified by:
compare in interface Comparator<AppSchedulable>


Copyright © 2014 Apache Software Foundation. All Rights Reserved.