java.lang.Object
java.lang.Enum<SchedulingMode>
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.SchedulingMode
All Implemented Interfaces:
Serializable, Comparable<SchedulingMode>, Constable

public enum SchedulingMode extends Enum<SchedulingMode>
Scheduling modes, see below for detailed explanations
  • Enum Constant Details

    • RESPECT_PARTITION_EXCLUSIVITY

      public static final SchedulingMode RESPECT_PARTITION_EXCLUSIVITY

      When a node has partition (say partition=x), only application in the queue can access to partition=x AND requires for partition=x resource can get chance to allocate on the node.

      When a node has no partition, only application requires non-partitioned resource can get chance to allocate on the node.

    • IGNORE_PARTITION_EXCLUSIVITY

      public static final SchedulingMode IGNORE_PARTITION_EXCLUSIVITY
      Only used when a node has partition AND the partition isn't an exclusive partition AND application requires non-partitioned resource.
  • Method Details

    • values

      public static SchedulingMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SchedulingMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null