Enum Class SubClusterState
java.lang.Object
java.lang.Enum<SubClusterState>
org.apache.hadoop.yarn.server.federation.store.records.SubClusterState
- All Implemented Interfaces:
Serializable,Comparable<SubClusterState>,Constable
State of a SubCluster.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSubcluster is out of service.Subcluster is in the process of being out of service.RM has not sent a heartbeat for some configured time threshold.Newly registered subcluster, before the first heartbeat.Subcluster is registered and the RM sent a heartbeat recently.Subcluster is unhealthy.Subcluster has unregistered. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SubClusterStatefromString(String state) Convert a string intoSubClusterState.booleanisActive()booleanisFinal()booleanisUsable()static SubClusterStateReturns the enum constant of this class with the specified name.static SubClusterState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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_DECOMMISSIONING
Subcluster is in the process of being out of service. -
SC_DECOMMISSIONED
Subcluster is out of service. -
SC_LOST
RM has not sent a heartbeat for some configured time threshold. -
SC_UNREGISTERED
Subcluster has unregistered.
-
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isUsable
public boolean isUsable() -
isActive
public boolean isActive() -
isFinal
public boolean isFinal() -
fromString
Convert a string intoSubClusterState.- Parameters:
state- the string to convert in SubClusterState- Returns:
- the respective
SubClusterState
-