Enum Class HdfsServerConstants.StartupOption
java.lang.Object
java.lang.Enum<HdfsServerConstants.StartupOption>
org.apache.hadoop.hdfs.server.common.HdfsServerConstants.StartupOption
- All Implemented Interfaces:
Serializable,Comparable<HdfsServerConstants.StartupOption>,Constable
- Enclosing interface:
- org.apache.hadoop.hdfs.server.common.HdfsServerConstants
public static enum HdfsServerConstants.StartupOption
extends Enum<HdfsServerConstants.StartupOption>
Startup options
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hdfs.server.namenode.MetaRecoveryContextintgetForce()booleanbooleangetName()voidsetClusterId(String cid) voidsetForce(int force) voidsetForceFormat(boolean force) voidsetInteractiveFormat(boolean interactive) voidtoString()Returns the enum constant of this class with the specified name.static HdfsServerConstants.StartupOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FORMAT
-
CLUSTERID
-
GENCLUSTERID
-
REGULAR
-
BACKUP
-
CHECKPOINT
-
UPGRADE
-
ROLLBACK
-
ROLLINGUPGRADE
-
IMPORT
-
BOOTSTRAPSTANDBY
-
INITIALIZESHAREDEDITS
-
RECOVER
-
FORCE
-
NONINTERACTIVE
-
SKIPSHAREDEDITSCHECK
-
RENAMERESERVED
-
METADATAVERSION
-
UPGRADEONLY
-
HOTSWAP
-
OBSERVER
-
-
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
-
getName
-
toNodeRole
-
setClusterId
-
getClusterId
-
setRollingUpgradeStartupOption
-
getRollingUpgradeStartupOption
-
createRecoveryContext
public org.apache.hadoop.hdfs.server.namenode.MetaRecoveryContext createRecoveryContext() -
setForce
public void setForce(int force) -
getForce
public int getForce() -
getForceFormat
public boolean getForceFormat() -
setForceFormat
public void setForceFormat(boolean force) -
getInteractiveFormat
public boolean getInteractiveFormat() -
setInteractiveFormat
public void setInteractiveFormat(boolean interactive) -
toString
- Overrides:
toStringin classEnum<HdfsServerConstants.StartupOption>
-
getEnum
-