java.lang.Object
java.lang.Enum<RoutingState>
org.elasticsearch.xpack.core.ml.inference.assignment.RoutingState
All Implemented Interfaces:
Serializable, Comparable<RoutingState>, Constable, MemoryTrackedTaskState

public enum RoutingState extends Enum<RoutingState> implements MemoryTrackedTaskState
  • Enum Constant Details

  • Method Details

    • values

      public static RoutingState[] 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 RoutingState 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
    • fromString

      public static RoutingState fromString(String value)
    • isNoneOf

      public boolean isNoneOf(RoutingState... candidates)
      Parameters:
      candidates - one or more candidate states
      Returns:
      true if state matches none of the given candidates
    • isAnyOf

      public boolean isAnyOf(RoutingState... candidates)
      Parameters:
      candidates - one or more candidate states
      Returns:
      true if state matches one of the given candidates
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RoutingState>
    • consumesMemory

      public boolean consumesMemory()
      Specified by:
      consumesMemory in interface MemoryTrackedTaskState
    • isAllocating

      public boolean isAllocating()
      Specified by:
      isAllocating in interface MemoryTrackedTaskState