public enum JobExecutionStatus extends Enum<JobExecutionStatus>
| Enum Constant and Description |
|---|
CREATED
The job has been created.
|
FAILED
The job had a system failure, with further details about the failure
stored directly in the job.
|
INTERRUPTED
The job has been interrupted, with further details about the interruption
stored directly in the job.
|
INTERRUPTING
A job interruption has been requested.
|
NOT_STARTED
The job has been sent to the execution queue and is ready to be picked by
a worker.
|
PROCESSED
The job has been processed successfully at the system level.
|
RUNNING
The job has been picked by a worker and is being executed.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isActive(JobExecutionStatus jobStatus)
Check if the job is currently active based on the job status.
|
static boolean |
isEnded(JobExecutionStatus jobStatus)
Check if the job execution has completed based on the job status.
|
static boolean |
isFailure(JobExecutionStatus jobStatus)
Check if the job has completed its execution with a failure
based on the job status.
|
static boolean |
isWaiting(JobExecutionStatus jobStatus)
Check if the job is currently waiting to be processed based on the job status.
|
static JobExecutionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobExecutionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobExecutionStatus CREATED
public static final JobExecutionStatus NOT_STARTED
public static final JobExecutionStatus RUNNING
public static final JobExecutionStatus INTERRUPTING
public static final JobExecutionStatus INTERRUPTED
Job.getInterruptionStatus().public static final JobExecutionStatus FAILED
Job.getFailureInfo().public static final JobExecutionStatus PROCESSED
public static JobExecutionStatus[] values()
for (JobExecutionStatus c : JobExecutionStatus.values()) System.out.println(c);
public static JobExecutionStatus 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 static boolean isWaiting(JobExecutionStatus jobStatus)
jobStatus - The job status.true if the job is waiting to be processed,
false otherwise.public static boolean isEnded(JobExecutionStatus jobStatus)
jobStatus - The job status.true if the job execution completed
(processed, interrupted or failed), false otherwise.public static boolean isFailure(JobExecutionStatus jobStatus)
jobStatus - The job status.true if the job completed execution with a
failure, false otherwise.public static boolean isActive(JobExecutionStatus jobStatus)
jobStatus - The job status.true if the job is currently active,
false otherwise.Copyright © 2015–2017 IBM Corporation. Licensed under the Apache License, Version 2.0.