public static enum JobStatus.State extends java.lang.Enum<JobStatus.State> implements ProtocolMessageEnum
The job state.Protobuf enum
google.cloud.dataproc.v1.JobStatus.State
Enum Constant and Description |
---|
ATTEMPT_FAILURE
Job attempt has failed.
|
CANCEL_PENDING
A CancelJob request has been received, but is pending.
|
CANCEL_STARTED
Transient in-flight resources have been canceled, and the request to
cancel the running job has been issued to the cluster.
|
CANCELLED
The job cancellation was successful.
|
DONE
The job has completed successfully.
|
ERROR
The job has completed, but encountered an error.
|
PENDING
The job is pending; it has been submitted, but is not yet running.
|
RUNNING
The job is running on the cluster.
|
SETUP_DONE
Job has been received by the service and completed initial setup;
it will soon be submitted to the cluster.
|
STATE_UNSPECIFIED
The job state is unknown.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ATTEMPT_FAILURE_VALUE
Job attempt has failed.
|
static int |
CANCEL_PENDING_VALUE
A CancelJob request has been received, but is pending.
|
static int |
CANCEL_STARTED_VALUE
Transient in-flight resources have been canceled, and the request to
cancel the running job has been issued to the cluster.
|
static int |
CANCELLED_VALUE
The job cancellation was successful.
|
static int |
DONE_VALUE
The job has completed successfully.
|
static int |
ERROR_VALUE
The job has completed, but encountered an error.
|
static int |
PENDING_VALUE
The job is pending; it has been submitted, but is not yet running.
|
static int |
RUNNING_VALUE
The job is running on the cluster.
|
static int |
SETUP_DONE_VALUE
Job has been received by the service and completed initial setup;
it will soon be submitted to the cluster.
|
static int |
STATE_UNSPECIFIED_VALUE
The job state is unknown.
|
Modifier and Type | Method and Description |
---|---|
static JobStatus.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<JobStatus.State> |
internalGetValueMap() |
static JobStatus.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static JobStatus.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static JobStatus.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JobStatus.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobStatus.State STATE_UNSPECIFIED
The job state is unknown.
STATE_UNSPECIFIED = 0;
public static final JobStatus.State PENDING
The job is pending; it has been submitted, but is not yet running.
PENDING = 1;
public static final JobStatus.State SETUP_DONE
Job has been received by the service and completed initial setup; it will soon be submitted to the cluster.
SETUP_DONE = 8;
public static final JobStatus.State RUNNING
The job is running on the cluster.
RUNNING = 2;
public static final JobStatus.State CANCEL_PENDING
A CancelJob request has been received, but is pending.
CANCEL_PENDING = 3;
public static final JobStatus.State CANCEL_STARTED
Transient in-flight resources have been canceled, and the request to cancel the running job has been issued to the cluster.
CANCEL_STARTED = 7;
public static final JobStatus.State CANCELLED
The job cancellation was successful.
CANCELLED = 4;
public static final JobStatus.State DONE
The job has completed successfully.
DONE = 5;
public static final JobStatus.State ERROR
The job has completed, but encountered an error.
ERROR = 6;
public static final JobStatus.State ATTEMPT_FAILURE
Job attempt has failed. The detail field contains failure details for this attempt. Applies to restartable jobs only.
ATTEMPT_FAILURE = 9;
public static final JobStatus.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
The job state is unknown.
STATE_UNSPECIFIED = 0;
public static final int PENDING_VALUE
The job is pending; it has been submitted, but is not yet running.
PENDING = 1;
public static final int SETUP_DONE_VALUE
Job has been received by the service and completed initial setup; it will soon be submitted to the cluster.
SETUP_DONE = 8;
public static final int RUNNING_VALUE
The job is running on the cluster.
RUNNING = 2;
public static final int CANCEL_PENDING_VALUE
A CancelJob request has been received, but is pending.
CANCEL_PENDING = 3;
public static final int CANCEL_STARTED_VALUE
Transient in-flight resources have been canceled, and the request to cancel the running job has been issued to the cluster.
CANCEL_STARTED = 7;
public static final int CANCELLED_VALUE
The job cancellation was successful.
CANCELLED = 4;
public static final int DONE_VALUE
The job has completed successfully.
DONE = 5;
public static final int ERROR_VALUE
The job has completed, but encountered an error.
ERROR = 6;
public static final int ATTEMPT_FAILURE_VALUE
Job attempt has failed. The detail field contains failure details for this attempt. Applies to restartable jobs only.
ATTEMPT_FAILURE = 9;
public static JobStatus.State[] values()
for (JobStatus.State c : JobStatus.State.values()) System.out.println(c);
public static JobStatus.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static JobStatus.State valueOf(int value)
forNumber(int)
instead.public static JobStatus.State forNumber(int value)
public static Internal.EnumLiteMap<JobStatus.State> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static JobStatus.State valueOf(Descriptors.EnumValueDescriptor desc)