Enum Class GraphState

java.lang.Object
java.lang.Enum<GraphState>
com.pervasive.datarush.graphs.GraphState
All Implemented Interfaces:
Serializable, Comparable<GraphState>, java.lang.constant.Constable

public enum GraphState extends Enum<GraphState>
Describes the state of a LogicalGraphInstance.
  • Enum Constant Details

    • COMPILED

      public static final GraphState COMPILED
      The instance is ready to be executed.
    • EXECUTING

      public static final GraphState EXECUTING
      The instance is currently executing.
    • COMPLETE_SUCCESS

      public static final GraphState COMPLETE_SUCCESS
      The instance has finished execution.
    • COMPLETE_CANCELED

      public static final GraphState COMPLETE_CANCELED
      The instance was canceled while executing.
    • COMPLETE_FAILED

      public static final GraphState COMPLETE_FAILED
      The instance had an error while executing.
  • Method Details

    • values

      public static GraphState[] 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 GraphState 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
    • isComplete

      public boolean isComplete()
      Returns true if the state corresponds to a "complete" state. A graph is considered "complete" if it is no longer running whether due to success, failure, or cancellation
      Returns:
      whether the state is a "complete" state
    • jobStatus

      public abstract JobStatus jobStatus()
      Returns the job status that corresponds to the given graph status.
      Returns: