public enum JobState extends Enum<JobState>
Enum Constant and Description |
---|
ABORTED
The job encountered an unrecoverable error and was forced to terminate abnormally
|
CANCELED
The job was canceled by the system or a user and has now stopped.
|
CANCELING
The job was canceled by the system or a user and is in the process of stopping.
|
COMPLETED
The job has run to completion and is now stopped.
|
FAILED
The job has run to completion and is now stopped.
|
FINALISING
The job is finalising its activities in preparation for stopping
|
INITIALISING
The job is initialising in preparation for running
|
READY
The job is ready to run and awaiting scheduling
|
RUNNING
The job is currently running
|
TIMED_OUT
The job ran for too long without an update and is now considered stopped
|
Modifier and Type | Method and Description |
---|---|
static JobState |
fromId(int id) |
int |
getId() |
boolean |
isFailed() |
boolean |
isTerminated() |
static JobState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobState INITIALISING
public static final JobState READY
public static final JobState RUNNING
public static final JobState FINALISING
public static final JobState COMPLETED
messages
may have been
logged determining whether the job failed or succeeded overall, depending on the type of job.public static final JobState FAILED
messages
may have been
logged determining whether the job failed or succeeded overall, depending on the type of job.public static final JobState CANCELING
public static final JobState CANCELED
public static final JobState TIMED_OUT
public static final JobState ABORTED
public static JobState[] values()
for (JobState c : JobState.values()) System.out.println(c);
public static JobState 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 getId()
public boolean isFailed()
public boolean isTerminated()
Copyright © 2024 Atlassian. All rights reserved.