Enum Class ProcessInfo.State

java.lang.Object
java.lang.Enum<ProcessInfo.State>
edu.rit.pj.cluster.ProcessInfo.State
All Implemented Interfaces:
Serializable, Comparable<ProcessInfo.State>, Constable
Enclosing class:
ProcessInfo

public static enum ProcessInfo.State extends Enum<ProcessInfo.State>
The state of a job backend process.
  • Enum Constant Details

    • NOT_STARTED

      public static final ProcessInfo.State NOT_STARTED
      The job backend process has not started yet.
    • RUNNING

      public static final ProcessInfo.State RUNNING
      The job backend process is running.
    • FINISHED

      public static final ProcessInfo.State FINISHED
      The job backend process has finished.
    • FAILED

      public static final ProcessInfo.State FAILED
      The job backend process has failed.
  • Method Details

    • values

      public static ProcessInfo.State[] 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 ProcessInfo.State 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
    • toString

      public String toString()
      Returns a string version of this State value.
      Overrides:
      toString in class Enum<ProcessInfo.State>
      Returns:
      String version.