Enum Class Phase
- All Implemented Interfaces:
Serializable,Comparable<Phase>,Constable
Indicates a particular phase of the namenode startup sequence. The phases
are listed here in their execution order.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe namenode is loading the edits file and applying its operations to the in-memory metadata.The namenode is loading the fsimage file into memory.The namenode has entered safemode, awaiting block reports from data nodes.The namenode is saving a new checkpoint. -
Method Summary
-
Enum Constant Details
-
LOADING_FSIMAGE
The namenode is loading the fsimage file into memory. -
LOADING_EDITS
The namenode is loading the edits file and applying its operations to the in-memory metadata. -
SAVING_CHECKPOINT
The namenode is saving a new checkpoint. -
SAFEMODE
The namenode has entered safemode, awaiting block reports from data nodes.
-
-
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
-
getDescription
Returns phase description.- Returns:
- String description
-
getName
Returns phase name.- Returns:
- String phase name
-