Package com.atlassian.bitbucket.job
Enum Class JobState
- All Implemented Interfaces:
Serializable
,Comparable<JobState>
,Constable
- Since:
- 5.13
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe job encountered an unrecoverable error and was forced to terminate abnormallyThe job was canceled by the system or a user and has now stopped.The job was canceled by the system or a user and is in the process of stopping.The job has run to completion and is now stopped.The job has run to completion and is now stopped.The job is finalising its activities in preparation for stoppingThe job is initialising in preparation for runningThe job is ready to run and awaiting schedulingThe job is currently runningThe job ran for too long without an update and is now considered stopped -
Method Summary
Modifier and TypeMethodDescriptionstatic JobState
fromId
(int id) int
getId()
boolean
isFailed()
boolean
static JobState
Returns the enum constant of this class with the specified name.static JobState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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 -
FINALISING
The job is finalising its activities in preparation for stopping -
COMPLETED
The job has run to completion and is now stopped. Errors or warningmessages
may have been logged determining whether the job failed or succeeded overall, depending on the type of job. -
FAILED
The job has run to completion and is now stopped. Errors or warningmessages
may have been logged determining whether the job failed or succeeded overall, depending on the type of job. -
CANCELING
The job was canceled by the system or a user and is in the process of stopping. -
CANCELED
The job was canceled by the system or a user and has now stopped. -
TIMED_OUT
The job ran for too long without an update and is now considered stopped -
ABORTED
The job encountered an unrecoverable error and was forced to terminate abnormally
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromId
-
getId
public int getId() -
isFailed
public boolean isFailed() -
isTerminated
public boolean isTerminated()
-