org.apache.hadoop.hdfs.server.common
Enum 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>
- Enclosing class:
- org.apache.hadoop.hdfs.server.common.HdfsServerConstants
public static enum HdfsServerConstants.StartupOption
- extends Enum<HdfsServerConstants.StartupOption>
Startup options
FORMAT
public static final HdfsServerConstants.StartupOption FORMAT
CLUSTERID
public static final HdfsServerConstants.StartupOption CLUSTERID
GENCLUSTERID
public static final HdfsServerConstants.StartupOption GENCLUSTERID
REGULAR
public static final HdfsServerConstants.StartupOption REGULAR
BACKUP
public static final HdfsServerConstants.StartupOption BACKUP
CHECKPOINT
public static final HdfsServerConstants.StartupOption CHECKPOINT
UPGRADE
public static final HdfsServerConstants.StartupOption UPGRADE
ROLLBACK
public static final HdfsServerConstants.StartupOption ROLLBACK
FINALIZE
public static final HdfsServerConstants.StartupOption FINALIZE
ROLLINGUPGRADE
public static final HdfsServerConstants.StartupOption ROLLINGUPGRADE
IMPORT
public static final HdfsServerConstants.StartupOption IMPORT
BOOTSTRAPSTANDBY
public static final HdfsServerConstants.StartupOption BOOTSTRAPSTANDBY
INITIALIZESHAREDEDITS
public static final HdfsServerConstants.StartupOption INITIALIZESHAREDEDITS
RECOVER
public static final HdfsServerConstants.StartupOption RECOVER
FORCE
public static final HdfsServerConstants.StartupOption FORCE
NONINTERACTIVE
public static final HdfsServerConstants.StartupOption NONINTERACTIVE
RENAMERESERVED
public static final HdfsServerConstants.StartupOption RENAMERESERVED
METADATAVERSION
public static final HdfsServerConstants.StartupOption METADATAVERSION
UPGRADEONLY
public static final HdfsServerConstants.StartupOption UPGRADEONLY
HOTSWAP
public static final HdfsServerConstants.StartupOption HOTSWAP
values
public static HdfsServerConstants.StartupOption[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (HdfsServerConstants.StartupOption c : HdfsServerConstants.StartupOption.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HdfsServerConstants.StartupOption valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException
- if the argument is null
getName
public String getName()
toNodeRole
public HdfsServerConstants.NamenodeRole toNodeRole()
setClusterId
public void setClusterId(String cid)
getClusterId
public String getClusterId()
setRollingUpgradeStartupOption
public void setRollingUpgradeStartupOption(String opt)
getRollingUpgradeStartupOption
public HdfsServerConstants.RollingUpgradeStartupOption 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
public String toString()
- Overrides:
toString
in class Enum<HdfsServerConstants.StartupOption>
getEnum
public static HdfsServerConstants.StartupOption getEnum(String value)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.