Package com.hazelcast.jet.core
Enum Class JobStatus
- All Implemented Interfaces:
Serializable
,Comparable<JobStatus>
,Constable
Represents current status of the job from the perspective of the job coordinator.
- Since:
- Jet 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe job has completed successfully.The job is currently being completed.The job has failed with an exception.The job is submitted but hasn't started yet.The job is currently running.The job is in the initialization phase on a new coordinator.The job is suspended and it can be manually resumed.The job is suspended and is exporting the snapshot. -
Method Summary
Modifier and TypeMethodDescriptionstatic JobStatus
getById
(int id) int
getId()
boolean
Returnstrue
if this state is terminal - a job in this state will never have any other state and will never execute again.static JobStatus
Returns the enum constant of this class with the specified name.static JobStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_RUNNING
The job is submitted but hasn't started yet. A job also enters this state when its execution was interrupted (e.g., due to a cluster member failing), before it is started again. -
STARTING
The job is in the initialization phase on a new coordinator. -
RUNNING
The job is currently running. -
SUSPENDED
The job is suspended and it can be manually resumed. -
SUSPENDED_EXPORTING_SNAPSHOT
The job is suspended and is exporting the snapshot. It cannot be resumed until the export is finished and status isSUSPENDED
again. -
COMPLETING
The job is currently being completed. -
FAILED
The job has failed with an exception. -
COMPLETED
The job has completed successfully.
-
-
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
-
isTerminal
public boolean isTerminal() -
getById
-
getId
public int getId()
-