Enum Class WorkerState

java.lang.Object
java.lang.Enum<WorkerState>
ai.djl.serving.wlm.WorkerState
All Implemented Interfaces:
Serializable, Comparable<WorkerState>, Constable

public enum WorkerState extends Enum<WorkerState>
An enum represents state of a worker.
  • Enum Constant Details

    • WORKER_STARTED

      public static final WorkerState WORKER_STARTED
    • WORKER_MODEL_LOADED

      public static final WorkerState WORKER_MODEL_LOADED
    • WORKER_STOPPED

      public static final WorkerState WORKER_STOPPED
    • WORKER_BUSY

      public static final WorkerState WORKER_BUSY
    • WORKER_ERROR

      public static final WorkerState WORKER_ERROR
    • WORKER_SCALED_DOWN

      public static final WorkerState WORKER_SCALED_DOWN
  • Method Details

    • values

      public static WorkerState[] 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 WorkerState 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