public static enum ClusterStatus.State extends Enum<ClusterStatus.State> implements ProtocolMessageEnum
The cluster state.Protobuf enum
google.cloud.dataproc.v1.ClusterStatus.State
Enum Constant and Description |
---|
CREATING
The cluster is being created and set up.
|
DELETING
The cluster is being deleted.
|
ERROR
The cluster encountered an error.
|
ERROR_DUE_TO_UPDATE
The cluster has encountered an error while being updated.
|
RUNNING
The cluster is currently running and healthy.
|
STARTING
The cluster is being started.
|
STOPPED
The cluster is currently stopped.
|
STOPPING
The cluster is being stopped.
|
UNKNOWN
The cluster state is unknown.
|
UNRECOGNIZED |
UPDATING
The cluster is being updated.
|
Modifier and Type | Field and Description |
---|---|
static int |
CREATING_VALUE
The cluster is being created and set up.
|
static int |
DELETING_VALUE
The cluster is being deleted.
|
static int |
ERROR_DUE_TO_UPDATE_VALUE
The cluster has encountered an error while being updated.
|
static int |
ERROR_VALUE
The cluster encountered an error.
|
static int |
RUNNING_VALUE
The cluster is currently running and healthy.
|
static int |
STARTING_VALUE
The cluster is being started.
|
static int |
STOPPED_VALUE
The cluster is currently stopped.
|
static int |
STOPPING_VALUE
The cluster is being stopped.
|
static int |
UNKNOWN_VALUE
The cluster state is unknown.
|
static int |
UPDATING_VALUE
The cluster is being updated.
|
Modifier and Type | Method and Description |
---|---|
static ClusterStatus.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<ClusterStatus.State> |
internalGetValueMap() |
static ClusterStatus.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static ClusterStatus.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ClusterStatus.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClusterStatus.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusterStatus.State UNKNOWN
The cluster state is unknown.
UNKNOWN = 0;
public static final ClusterStatus.State CREATING
The cluster is being created and set up. It is not ready for use.
CREATING = 1;
public static final ClusterStatus.State RUNNING
The cluster is currently running and healthy. It is ready for use. **Note:** The cluster state changes from "creating" to "running" status after the master node(s), first two primary worker nodes (and the last primary worker node if primary workers > 2) are running.
RUNNING = 2;
public static final ClusterStatus.State ERROR
The cluster encountered an error. It is not ready for use.
ERROR = 3;
public static final ClusterStatus.State ERROR_DUE_TO_UPDATE
The cluster has encountered an error while being updated. Jobs can be submitted to the cluster, but the cluster cannot be updated.
ERROR_DUE_TO_UPDATE = 9;
public static final ClusterStatus.State DELETING
The cluster is being deleted. It cannot be used.
DELETING = 4;
public static final ClusterStatus.State UPDATING
The cluster is being updated. It continues to accept and process jobs.
UPDATING = 5;
public static final ClusterStatus.State STOPPING
The cluster is being stopped. It cannot be used.
STOPPING = 6;
public static final ClusterStatus.State STOPPED
The cluster is currently stopped. It is not ready for use.
STOPPED = 7;
public static final ClusterStatus.State STARTING
The cluster is being started. It is not ready for use.
STARTING = 8;
public static final ClusterStatus.State UNRECOGNIZED
public static final int UNKNOWN_VALUE
The cluster state is unknown.
UNKNOWN = 0;
public static final int CREATING_VALUE
The cluster is being created and set up. It is not ready for use.
CREATING = 1;
public static final int RUNNING_VALUE
The cluster is currently running and healthy. It is ready for use. **Note:** The cluster state changes from "creating" to "running" status after the master node(s), first two primary worker nodes (and the last primary worker node if primary workers > 2) are running.
RUNNING = 2;
public static final int ERROR_VALUE
The cluster encountered an error. It is not ready for use.
ERROR = 3;
public static final int ERROR_DUE_TO_UPDATE_VALUE
The cluster has encountered an error while being updated. Jobs can be submitted to the cluster, but the cluster cannot be updated.
ERROR_DUE_TO_UPDATE = 9;
public static final int DELETING_VALUE
The cluster is being deleted. It cannot be used.
DELETING = 4;
public static final int UPDATING_VALUE
The cluster is being updated. It continues to accept and process jobs.
UPDATING = 5;
public static final int STOPPING_VALUE
The cluster is being stopped. It cannot be used.
STOPPING = 6;
public static final int STOPPED_VALUE
The cluster is currently stopped. It is not ready for use.
STOPPED = 7;
public static final int STARTING_VALUE
The cluster is being started. It is not ready for use.
STARTING = 8;
public static ClusterStatus.State[] values()
for (ClusterStatus.State c : ClusterStatus.State.values()) System.out.println(c);
public static ClusterStatus.State 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 final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static ClusterStatus.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static ClusterStatus.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<ClusterStatus.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 ClusterStatus.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.