public enum ApplicationStatus extends Enum<ApplicationStatus>
Enum Constant and Description |
---|
CANCELED
Application was canceled or killed on request.
|
FAILED
Application encountered an unrecoverable failure or error.
|
SUCCEEDED
Application finished successfully.
|
UNKNOWN
Application status is not known.
|
Modifier and Type | Method and Description |
---|---|
JobStatus |
deriveJobStatus()
Derives the
JobStatus from the ApplicationStatus . |
static ApplicationStatus |
fromJobStatus(JobStatus jobStatus)
Derives the ApplicationStatus that should be used for a job that resulted in the given job
status.
|
int |
processExitCode()
Gets the process exit code associated with this status.
|
static ApplicationStatus |
valueOf(String name)
Returns 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.
|
public static final ApplicationStatus SUCCEEDED
public static final ApplicationStatus FAILED
public static final ApplicationStatus CANCELED
public static final ApplicationStatus UNKNOWN
public static ApplicationStatus[] values()
for (ApplicationStatus c : ApplicationStatus.values()) System.out.println(c);
public static ApplicationStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int processExitCode()
public static ApplicationStatus fromJobStatus(JobStatus jobStatus)
UNKNOWN
.public JobStatus deriveJobStatus()
JobStatus
from the ApplicationStatus
.JobStatus
.UnsupportedOperationException
- for UNKNOWN
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.