@InterfaceAudience.Private @InterfaceStability.Unstable public enum SubClusterState extends Enum<SubClusterState>
 State of a SubCluster.
 
| Enum Constant and Description | 
|---|
| SC_DECOMMISSIONEDSubcluster is out of service. | 
| SC_DECOMMISSIONINGSubcluster is in the process of being out of service. | 
| SC_LOSTRM has not sent a heartbeat for some configured time threshold. | 
| SC_NEWNewly registered subcluster, before the first heartbeat. | 
| SC_RUNNINGSubcluster is registered and the RM sent a heartbeat recently. | 
| SC_UNHEALTHYSubcluster is unhealthy. | 
| SC_UNREGISTEREDSubcluster 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 SubClusterStateSubClusterStateCopyright © 2008–2023 Apache Software Foundation. All rights reserved.