java.io.Serializable, java.lang.Comparable<SubClusterState>@Private @Unstable public enum SubClusterState extends java.lang.Enum<SubClusterState>
State of a SubCluster.
| Enum Constant | Description |
|---|---|
SC_DECOMMISSIONED |
Subcluster is out of service.
|
SC_DECOMMISSIONING |
Subcluster is in the process of being out of service.
|
SC_LOST |
RM has not sent a heartbeat for some configured time threshold.
|
SC_NEW |
Newly registered subcluster, before the first heartbeat.
|
SC_RUNNING |
Subcluster is registered and the RM sent a heartbeat recently.
|
SC_UNHEALTHY |
Subcluster is unhealthy.
|
SC_UNREGISTERED |
Subcluster has unregistered.
|
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Modifier and Type | Method | Description |
|---|---|---|
static SubClusterState |
fromString(java.lang.String state) |
Convert a string into
SubClusterState. |
boolean |
isActive() |
|
boolean |
isFinal() |
|
boolean |
isUsable() |
|
static SubClusterState |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SubClusterState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubClusterState SC_NEW
public static final SubClusterState SC_RUNNING
public static final SubClusterState SC_UNHEALTHY
public static final SubClusterState SC_DECOMMISSIONING
public static final SubClusterState SC_DECOMMISSIONED
public static final SubClusterState SC_LOST
public static final SubClusterState SC_UNREGISTERED
public static SubClusterState[] values()
for (SubClusterState c : SubClusterState.values()) System.out.println(c);
public static SubClusterState 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 boolean isUsable()
public boolean isActive()
public boolean isFinal()
public static SubClusterState fromString(java.lang.String state)
SubClusterState.state - the string to convert in SubClusterStateSubClusterStateCopyright © 2008–2025 Apache Software Foundation. All rights reserved.