public enum JobStatus extends Enum<JobStatus>
Enum Constant and Description |
---|
COMPLETED
The job has completed successfully.
|
COMPLETING
The job is currently being completed.
|
FAILED
The job has failed with an exception.
|
NOT_RUNNING
The job is submitted but hasn't started yet.
|
RUNNING
The job is currently running.
|
STARTING
The job is in the initialization phase on a new coordinator.
|
SUSPENDED
The job is suspended and it can be manually resumed.
|
SUSPENDED_EXPORTING_SNAPSHOT
The job is suspended and is exporting the snapshot.
|
Modifier and Type | Method and Description |
---|---|
static JobStatus |
getById(int id) |
int |
getId() |
boolean |
isTerminal()
Returns
true if this state is terminal - a job in this state
will never have any other state and will never execute again. |
static JobStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobStatus NOT_RUNNING
public static final JobStatus STARTING
public static final JobStatus RUNNING
public static final JobStatus SUSPENDED
public static final JobStatus SUSPENDED_EXPORTING_SNAPSHOT
SUSPENDED
again.public static final JobStatus COMPLETING
public static final JobStatus FAILED
public static final JobStatus COMPLETED
public static JobStatus[] values()
for (JobStatus c : JobStatus.values()) System.out.println(c);
public static JobStatus 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 boolean isTerminal()
public static JobStatus getById(int id)
public int getId()
Copyright © 2022 Hazelcast, Inc.. All rights reserved.