Enum ApplicationStatus
- All Implemented Interfaces:
Serializable,Comparable<ApplicationStatus>
The status of an application.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.common.JobStatusDerives theJobStatusfrom theApplicationStatus.static ApplicationStatusfromJobStatus(org.apache.flink.api.common.JobStatus jobStatus) Derives the ApplicationStatus that should be used for a job that resulted in the given job status.intGets the process exit code associated with this status.static ApplicationStatusReturns the enum constant of this type with the specified name.static ApplicationStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCEEDED
Application finished successfully. -
FAILED
Application encountered an unrecoverable failure or error. -
CANCELED
Application was canceled or killed on request. -
UNKNOWN
Application status is not known.
-
-
Method Details
-
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
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 nameNullPointerException- 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
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 returnsUNKNOWN. -
deriveJobStatus
public org.apache.flink.api.common.JobStatus deriveJobStatus()Derives theJobStatusfrom theApplicationStatus.- Returns:
- The corresponding
JobStatus. - Throws:
UnsupportedOperationException- forUNKNOWN.
-