@InterfaceAudience.Private @InterfaceStability.Unstable public enum SubClusterState extends Enum<SubClusterState>
State of a SubCluster
.
Enum Constant and 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 and Description |
---|---|
static org.slf4j.Logger |
LOG |
Modifier and Type | Method and Description |
---|---|
static SubClusterState |
fromString(String x)
Convert a string into
SubClusterState . |
boolean |
isActive() |
boolean |
isFinal() |
boolean |
isUnusable() |
static SubClusterState |
valueOf(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(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 isUnusable()
public boolean isActive()
public boolean isFinal()
public static SubClusterState fromString(String x)
SubClusterState
.x
- the string to convert in SubClusterStateSubClusterState
Copyright © 2022 Apache Software Foundation. All rights reserved.