Enum ApplicationStatus

java.lang.Object
java.lang.Enum<ApplicationStatus>
org.apache.flink.runtime.clusterframework.ApplicationStatus
All Implemented Interfaces:
Serializable, Comparable<ApplicationStatus>

public enum ApplicationStatus extends Enum<ApplicationStatus>
The status of an application.
  • Enum Constant Details

    • SUCCEEDED

      public static final ApplicationStatus SUCCEEDED
      Application finished successfully.
    • FAILED

      public static final ApplicationStatus FAILED
      Application encountered an unrecoverable failure or error.
    • CANCELED

      public static final ApplicationStatus CANCELED
      Application was canceled or killed on request.
    • UNKNOWN

      public static final ApplicationStatus UNKNOWN
      Application status is not known.
  • Method Details

    • values

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

      public static ApplicationStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • processExitCode

      public int processExitCode()
      Gets the process exit code associated with this status.
      Returns:
      The associated process exit code.
    • fromJobStatus

      public static ApplicationStatus fromJobStatus(org.apache.flink.api.common.JobStatus jobStatus)
      Derives the ApplicationStatus that should be used for a job that resulted in the given job status. If the job is not yet in a globally terminal state, this method returns UNKNOWN.
    • deriveJobStatus

      public org.apache.flink.api.common.JobStatus deriveJobStatus()
      Derives the JobStatus from the ApplicationStatus.
      Returns:
      The corresponding JobStatus.
      Throws:
      UnsupportedOperationException - for UNKNOWN.